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