equal
deleted
inserted
replaced
258 $resources = $this->resGraphes['BASE']->allOfType('edm:ProvidedCHO'); |
258 $resources = $this->resGraphes['BASE']->allOfType('edm:ProvidedCHO'); |
259 |
259 |
260 $this->assertCount(1, $resources, "Must found only one resources of type edm:ProvidedCHO"); |
260 $this->assertCount(1, $resources, "Must found only one resources of type edm:ProvidedCHO"); |
261 $providedCHO = $resources[0]; |
261 $providedCHO = $resources[0]; |
262 |
262 |
263 $identifier = $providedCHO->getLiteral('<http://purl.org/dc/terms/identifier>'); |
263 $identifier = $providedCHO->getLiteral('<http://purl.org/dc/elements/1.1/identifier>'); |
264 |
264 |
265 $this->assertInstanceOf('EasyRdf\Literal', $identifier, "identifier value must be a literal"); |
265 $this->assertInstanceOf('EasyRdf\Literal', $identifier, "identifier value must be a literal"); |
266 $this->assertEquals(CocoonSoundRdfMapperTest::TEST_INPUT_ID, $identifier->getValue(), "Value must be equals to ".CocoonSoundRdfMapperTest::TEST_INPUT_ID); |
266 $this->assertEquals(config('corpusparole.corpus_id_scheme') . CocoonSoundRdfMapperTest::TEST_INPUT_ID, $identifier->getValue(), "Value must be equals to ".config('corpusparole.corpus_id_scheme').CocoonSoundRdfMapperTest::TEST_INPUT_ID); |
267 |
267 |
268 } |
268 } |
269 |
269 |
270 |
270 |
271 public function testRightsWebResourceIdentity() { |
271 public function testRightsWebResourceIdentity() { |