diff -r c06db7aa1b10 -r cdaf9dfb5dfd server/src/tests/Libraries/Mappers/CocoonSoundRdfMapperTest.php --- a/server/src/tests/Libraries/Mappers/CocoonSoundRdfMapperTest.php Thu Feb 23 18:59:04 2017 +0100 +++ b/server/src/tests/Libraries/Mappers/CocoonSoundRdfMapperTest.php Thu Mar 02 15:09:17 2017 +0100 @@ -82,7 +82,7 @@ "ESLO1: entretien 019 alt"@fr ; , ; " Freely available for non-commercial use" ; - ; + ; , ; "PT0H47M16S" ; "1969-04-11"^^ ; @@ -238,6 +238,23 @@ } /** + * test rights on no-format + * + * @return void + */ + public function testRightsOtherLicense() { + $rightsNodes = $this->resGraphes['NO-FORMAT']->all($this->testGraphUri, 'edm:rights'); + + $this->assertCount(1, $rightsNodes, "One edm:right"); + + $rights = $rightsNodes[0]; + + $this->assertTrue($rights instanceof Resource); + + $this->assertEquals("http://creativecommons.org/licenses/by-nc-nd/4.0/", $rights->getUri(), "right must be CC-BY-NC"); + } + + /** * Test that the return graph has one ore:Aggregation resource * * @return void