Skip to content
Snippets Groups Projects
Commit f1a34ad7 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch...

Merge branch 'hotline#118254_musicme_lien_vers_la_jaquette_ko_url_fournie_par_musicme_a_faire_evoluer_informer_fournisseur_de_la_suite_donnee' into 'hotline'

hotline #118254 Music me : thumbnails URL should have 'u' before ean

See merge request !3762
parents 7969e316 097afe56
Branches
Tags
2 merge requests!3764Hotline,!3762hotline #118254 Music me : thumbnails URL should have 'u' before ean
Pipeline #11850 failed with stage
in 1 hour and 1 second
- ticket #118254 : MusicMe : mise en conformité à l'évolution du calcul de l'url de la jacquette
\ No newline at end of file
......@@ -34,7 +34,7 @@ class Musicme_Service_Album extends Class_WebService_BibNumerique_RessourceNumer
}
public function fillAlbum($album) {
$this->addPoster(Musicme_Config::getInstance()->getAdminVar('COVER_IMG_URL').'/'.$this->getId().'.jpg');
$this->addPoster(Musicme_Config::getInstance()->getAdminVar('COVER_IMG_URL').'/u'.$this->getId().'.jpg');
$album
->setTypeDocId($this->getTypeDoc());
......
......@@ -46,13 +46,13 @@ class MusicmeFixtures {
->with('http://easyaxe.musicme.com/partnerstop.xml.gz')
->answers($musicme_xml)
->whenCalled('open_url')
->with('http://easyaxecover.com/0000000063128.jpg')
->with('http://easyaxecover.com/u0000000063128.jpg')
->answers(true)
->whenCalled('open_url')
->with('http://easyaxecover.com/0190295740580.jpg')
->with('http://easyaxecover.com/u0190295740580.jpg')
->answers(true)
->whenCalled('open_url')
->with('http://easyaxecover.com/0008811031725.jpg')
->with('http://easyaxecover.com/u0008811031725.jpg')
->answers(true);
......@@ -184,7 +184,7 @@ class MusicmeHarvestTest extends ModelTestCase {
/** @test */
public function imageShouldBeSet() {
$this->assertEquals('http://easyaxecover.com/0000000063128.jpg', $this->_destination->getPoster());
$this->assertEquals('http://easyaxecover.com/u0000000063128.jpg', $this->_destination->getPoster());
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment