server/src/tests/libraries/Mappers/CocoonTextRdfMapperTest.php
changeset 122 b37fde30dd4a
parent 116 e60c55988ed4
child 125 e550b10fe3ca
equal deleted inserted replaced
121:08c99d286e7c 122:b37fde30dd4a
   124         $resources = $this->resGraphes['BASE']->allOfType('edm:ProvidedCHO');
   124         $resources = $this->resGraphes['BASE']->allOfType('edm:ProvidedCHO');
   125 
   125 
   126         $this->assertCount(1, $resources, "Must found only one resources of type edm:ProvidedCHO");
   126         $this->assertCount(1, $resources, "Must found only one resources of type edm:ProvidedCHO");
   127         $providedCHO = $resources[0];
   127         $providedCHO = $resources[0];
   128 
   128 
   129         $identifier = $providedCHO->getLiteral('<http://purl.org/dc/terms/identifier>');
   129         $identifier = $providedCHO->getLiteral('<http://purl.org/dc/elements/1.1/identifier>');
   130 
   130 
   131         $this->assertInstanceOf('EasyRdf\Literal', $identifier, "identifier value must be a literal");
   131         $this->assertInstanceOf('EasyRdf\Literal', $identifier, "identifier value must be a literal");
   132         $this->assertEquals(CocoonTextRdfMapperTest::TEST_INPUT_ID, $identifier->getValue(), "Value must be equals to ".CocoonTextRdfMapperTest::TEST_INPUT_ID);
   132         $this->assertEquals(config('corpusparole.corpus_id_scheme') . CocoonTextRdfMapperTest::TEST_INPUT_ID, $identifier->getValue(), "Value must be equals to ".config('corpusparole.corpus_id_scheme').CocoonTextRdfMapperTest::TEST_INPUT_ID);
   133 
   133 
   134     }
   134     }
   135 
   135 
   136     public function testRightsWebResourceIdentity() {
   136     public function testRightsWebResourceIdentity() {
   137         $properties = [
   137         $properties = [