diff -r af85c436048f -r 7a542145832c server/src/tests/Repositories/DocumentRepositoryIntegrationTest.php
--- a/server/src/tests/Repositories/DocumentRepositoryIntegrationTest.php Wed Jan 20 16:21:40 2016 +0100
+++ b/server/src/tests/Repositories/DocumentRepositoryIntegrationTest.php Wed Jan 20 16:42:20 2016 +0100
@@ -45,7 +45,7 @@
owl:sameAs ;
"northlimit=47.431892250000033; southlimit=49.053971250000046;westlimit=6.846186050000028; eastlimit=8.232571550000074;"^^ , "FR"^^ , "France, Alsace"@fr .
- <###h#ttp://purl.org/poi/corpusdelaparole.huma-num.fr/crdo-ALA_738> a ;
+ a ;
;
"Atlas linguistiques, cultures et parlers régionaux de France" ;
, ;
@@ -97,7 +97,7 @@
function __construct(string $name = null) {
parent::__construct($name);
- $this->graph = new EasyRdf\Graph("http://purl.org/poi/corpusdelaparole.huma-num.fr/crdo-ALA_738", DocumentRepositoryIntegrationTest::TEST_DOC);
+ $this->graph = new EasyRdf\Graph("http://corpusdelaparole.huma-num.fr/corpus/res/crdo-ALA_738", DocumentRepositoryIntegrationTest::TEST_DOC);
}
public function setUp() {
@@ -119,7 +119,7 @@
$this->httpClient->put("repositories/$this->sesameRepository/statements", [
'headers' => ['Content-type' => 'text/turtle;charset=UTF-8'],
'body' => DocumentRepositoryIntegrationTest::TEST_DOC,
- 'query' => ['context' => ''],
+ 'query' => ['context' => ''],
]);
}
@@ -152,13 +152,13 @@
$this->assertInstanceOf(Document::class, $res, "Result must be of type Document");
$this->assertEquals('crdo-ALA_738', $res->getId(), 'id should be crdo-ALA_738' );
$this->assertNotNull($res->getGraph(), "Graph shoul not be null");
- $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");
+ $this->assertEquals("http://corpusdelaparole.huma-num.fr/corpus/res/crdo-ALA_738",$res->getGraph()->getUri(), "uri of graph must be http://corpusdelaparole.huma-num.fr/corpus/res/crdo-ALA_738");
$this->assertTrue(EasyRdf\Isomorphic::isomorphic($res->getGraph(),$returnedGraph));
}
public function testSave() {
- $doc = new Document("http://purl.org/poi/corpusdelaparole.huma-num.fr/crdo-ALA_738", $this->graph);
+ $doc = new Document("http://corpusdelaparole.huma-num.fr/corpus/res/crdo-ALA_738", $this->graph);
$doc->updateDiscourseTypes(['oratory','drama','narrative']);
$res = $this->documentRepository->save($doc);