equal
deleted
inserted
replaced
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 |