diff -r ef3e4841d506 -r d6adc4047ede server/src/tests/Libraries/Mergers/CocoonTextRdfMergerTest.php --- a/server/src/tests/Libraries/Mergers/CocoonTextRdfMergerTest.php Wed Feb 22 07:57:05 2017 +0100 +++ b/server/src/tests/Libraries/Mergers/CocoonTextRdfMergerTest.php Wed Feb 22 14:44:28 2017 +0100 @@ -105,6 +105,29 @@ } + + /** + * Test merge dc11:creator from SOUND + * + * @return void + */ + public function testCreatorSoundText() { + + $resGraph = $this->resGraph["SOUND_TEXT"]; + + $providedCHO = $resGraph->get('edm:ProvidedCHO', '^rdf:type'); + $baseNode = $this->inputGraphes['SOUND']->get('edm:ProvidedCHO', '^rdf:type'); + $this->assertNotNull($providedCHO); + $this->assertNotNull($baseNode); + + $outputValuesStr = []; + foreach($providedCHO->all($resGraph->resource("http://purl.org/dc/elements/1.1/creator")) as $outputValue) { + array_push($outputValuesStr, strval($outputValue)); + } + $this->assertNotEmpty($outputValuesStr, "we must found some values to test http://purl.org/dc/elements/1.1/creator"); + $this->assertCount(2, $outputValuesStr, "we must found 2 values http://purl.org/dc/elements/1.1/creator"); + } + /** * Test one to one mapping *