server/src/tests/Repositories/DocumentRepositoryIntegrationTest.php
changeset 500 4f507ba2bb4c
parent 405 f239c8c5bb94
equal deleted inserted replaced
499:b5cff30efa0a 500:4f507ba2bb4c
    80 
    80 
    81         $res = $this->documentRepository->get('crdo-ALA_738');
    81         $res = $this->documentRepository->get('crdo-ALA_738');
    82 
    82 
    83         $this->assertInstanceOf(Document::class, $res, "Result must be of type Document");
    83         $this->assertInstanceOf(Document::class, $res, "Result must be of type Document");
    84         $this->assertEquals(config('corpusparole.corpus_id_scheme').'crdo-ALA_738', $res->getId(), 'id should be crdo-ALA_738' );
    84         $this->assertEquals(config('corpusparole.corpus_id_scheme').'crdo-ALA_738', $res->getId(), 'id should be crdo-ALA_738' );
    85         $this->assertNotNull($res->getGraph(), "Graph shoul not be null");
    85         $this->assertNotNull($res->getGraph(), "Graph should not be null");
    86         $this->assertEquals(config('corpusparole.corpus_doc_id_base_uri')."crdo-ALA_738",$res->getGraph()->getUri(), "uri of graph must be ".config('corpusparole.corpus_doc_id_base_uri')."crdo-ALA_738");
    86         $this->assertEquals(config('corpusparole.corpus_doc_id_base_uri')."crdo-ALA_738",$res->getGraph()->getUri(), "uri of graph must be ".config('corpusparole.corpus_doc_id_base_uri')."crdo-ALA_738");
    87         $this->assertTrue(EasyRdf\Isomorphic::isomorphic($res->getGraph(),$returnedGraph));
    87         $this->assertTrue(EasyRdf\Isomorphic::isomorphic($res->getGraph(),$returnedGraph));
    88     }
    88     }
    89 
    89 
    90     public function testGetShort() {
    90     public function testGetShort() {