diff -r 4ce76c9e7729 -r 72f51a9386ff server/src/tests/Repositories/DocumentRepositoryTest.php --- a/server/src/tests/Repositories/DocumentRepositoryTest.php Thu Jan 14 18:35:23 2016 +0100 +++ b/server/src/tests/Repositories/DocumentRepositoryTest.php Thu Dec 10 18:57:58 2015 +0100 @@ -92,6 +92,8 @@ $returnedArray = [ m::mock('resObj', function($mock) use (&$expectedId) { $mock->uri = new EasyRdf\Resource($expectedId); + $mock->doc = new EasyRdf\Resource("http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-ALA_738"); + $mock->title = new EasyRdf\Literal("Atlas Linguistique et ethnographique de l'Alsace - Enquetes sur la conscience linguistique - ALA_738", null, "fr"); }), ]; @@ -108,7 +110,7 @@ $this->assertInstanceOf(Document::class, $resDoc, "Res doc must be a Document"); $this->assertEquals('crdo-ALA_738', $resDoc->getId(), "id must be crdo..."); $this->assertEquals($expectedId, $resDoc->getUri(), 'url must be ...'); - $this->assertNull($resDoc->getGraph(), 'Graph must be null'); + $this->assertNotNull($resDoc->getGraph(), 'Graph must be not null'); } public function testGet() {