server/src/tests/Repositories/DocumentRepositoryIntegrationTest.php
changeset 28 b0b56e0f8c7f
parent 26 72f51a9386ff
child 109 d22ed5792f8e
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
   150         $res = $this->documentRepository->get('crdo-ALA_738');
   150         $res = $this->documentRepository->get('crdo-ALA_738');
   151 
   151 
   152         $this->assertInstanceOf(Document::class, $res, "Result must be of type Document");
   152         $this->assertInstanceOf(Document::class, $res, "Result must be of type Document");
   153         $this->assertEquals('crdo-ALA_738', $res->getId(), 'id should be crdo-ALA_738' );
   153         $this->assertEquals('crdo-ALA_738', $res->getId(), 'id should be crdo-ALA_738' );
   154         $this->assertNotNull($res->getGraph(), "Graph shoul not be null");
   154         $this->assertNotNull($res->getGraph(), "Graph shoul not be null");
       
   155         $this->assertEquals("http://purl.org/poi/corpusdelaparole.huma-num.fr/crdo-ALA_738",$res->getGraph()->getUri(), "uri of graph must be http://purl.org/poi/corpusdelaparole.huma-num.fr/crdo-ALA_738");
   155         $this->assertTrue(EasyRdf\Isomorphic::isomorphic($res->getGraph(),$returnedGraph));
   156         $this->assertTrue(EasyRdf\Isomorphic::isomorphic($res->getGraph(),$returnedGraph));
   156     }
   157     }
   157 
   158 
   158     public function testSave() {
   159     public function testSave() {
   159 
   160