assertEquals('DELETE', $operation->getMethod()); $this->assertEquals('dinosaur', $operation->getEntityName()); $this->assertEquals('dinosaur/1', $operation->getPath()); $this->assertEquals('DELETE dinosaur/1', (string)$operation); } public function testGetChangeLog() { $operation = new DeleteOperation( 'Delete a dinosaur', 'dinosaur', 1 ); $this->assertEquals( ['[DELETE dinosaur/1]'], $operation->getChangeLog() ); } }