Skip to content
Snippets Groups Projects
Commit 633f660d authored by gloas's avatar gloas
Browse files

rel #11216 Audio player : correction of the mp3 url's

parent f2c8e13e
Branches
Tags
No related merge requests found
......@@ -25,7 +25,7 @@ class ZendAfi_View_Helper_Album_PlayRessourceUrl extends Zend_View_Helper_Abstr
if (!$extension && $ressource->hasUrl())
return $this->view->absoluteUrl($ressource->getOriginalUrl());
return $this->view->absoluteUrl('bib-numerique/play-ressource/id/'.$ressource->getId(),null,true).'.'.$extension;
return $this->view->absoluteUrl('/bib-numerique/play-ressource/id/'.$ressource->getId(),null,true).'.'.$extension;
}
}
......
......@@ -116,7 +116,7 @@ class RechercheControllerAlbumAudioRecordViewNoticeTest extends RechercheControl
/** @test */
public function noticeFirstMorceauUrlEcouteShouldBeMoonchildDotMP3() {
$this->assertContains('bib-numerique/play-ressource/id/1.mp3',
$this->assertContains('/bib-numerique/play-ressource/id/1.mp3',
$this->_notice->getMorceaux()['morceaux'][1][1]['url_ecoute']);
}
......@@ -147,7 +147,7 @@ class RechercheControllerAlbumAudioRecordViewMorceauxTest extends RechercheContr
/** @test */
public function moonchildPlayerShouldBePresent() {
$this->assertXPath('//audio/source[contains(@src, "bib-numerique/play-ressource/id/1.mp3")]', $this->_response->getBody());
$this->assertXPath('//audio/source[contains(@src, "/bib-numerique/play-ressource/id/1.mp3")]', $this->_response->getBody());
}
......@@ -210,7 +210,7 @@ class RechercheControllerAlbumAudioRecordViewRessourcesNumeriquesTest extends Re
/** @test */
public function moonchildPlayerShouldBePresent() {
$this->assertXPath('//ol//li//audio/source[contains(@src, "bib-numerique/play-ressource/id/1.mp3")]', $this->_response->getBody());
$this->assertXPath('//ol//li//audio/source[contains(@src, "/bib-numerique/play-ressource/id/1.mp3")]', $this->_response->getBody());
}
......@@ -265,7 +265,7 @@ class RechercheControllerAlbumAudioRecordAsTelephoneViewRessourcesNumeriquesTest
/** @test */
public function moonchildPlayerShouldBePresent() {
$this->assertXPath('//ol//li//audio/source[contains(@src, "bib-numerique/play-ressource/id/1.mp3")]', $this->_response->getBody());
$this->assertXPath('//ol//li//audio/source[contains(@src, "/bib-numerique/play-ressource/id/1.mp3")]', $this->_response->getBody());
}
......
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