instance = new DeletePointInTime(); } public function testGetURIWhenIndexAndIdAreDefined(): void { // Arrange $expected = '/_search/point_in_time'; $this->instance->setIndex('index'); $this->instance->setId(10); // Act $result = $this->instance->getURI(); // Assert $this->assertEquals($expected, $result); } public function testGetURIWhenIndexIsDefinedAndIdIsNotDefined(): void { // Arrange $expected = '/_search/point_in_time'; $this->instance->setIndex('index'); // Act $result = $this->instance->getURI(); // Assert $this->assertEquals($expected, $result); } public function testGetURIWhenIndexIsNotDefined(): void { // Arrange $expected = '/_search/point_in_time'; // Act $result = $this->instance->getURI(); // Assert $this->assertEquals($expected, $result); } public function testGetMethodWhenIdIsDefined(): void { // Arrange $expected = 'DELETE'; $this->instance->setId(10); // Act $result = $this->instance->getMethod(); // Assert $this->assertEquals($expected, $result); } public function testGetMethodWhenIdIsNotDefined(): void { // Arrange $expected = 'DELETE'; // Act $result = $this->instance->getMethod(); // Assert $this->assertEquals($expected, $result); } }