Commit eb638ef3 authored by Patrick Barroca's avatar Patrick Barroca 🎮

Merge branch 'hotline#72325_lille_metropole_pb_lien_domaine_json' into 'hotline'

hotline #72325 Fix /bib-numerique/play-ressource

See merge request afi/opacce!2527
parents 43af254f 6c4a37a8
- ticket #72325 : Correction de la lecteur des ressources numériques via l'URL /bib-numerique/play-ressource
\ No newline at end of file
......@@ -158,7 +158,7 @@ class Class_AlbumRessource extends Storm_Model_Abstract {
* @return String
*/
public function getAuteur() {
return $this->getAlbum()->getAuteur();
return $this->getAlbum()->getMainAuthorName();
}
......
......@@ -545,7 +545,9 @@ class BibNumeriqueControllerViewCategorieActionLaBibleDeSouvignyTest extends Bib
abstract class BibNumeriqueControllerAlbumMultiMediasTestCase extends AbstractControllerTestCase {
protected $_xpath;
protected
$_xpath,
$_storm_default_to_volatile = true;
public function setUp() {
parent::setUp();
......@@ -556,7 +558,7 @@ abstract class BibNumeriqueControllerAlbumMultiMediasTestCase extends AbstractCo
->beDiaporama()
->setTitre('Plein de medias')
->setSousTitre('Pour tester')
->setAuteur('Suzanne Collins')
->addAuthor('Suzanne Collins')
->setAnnee(2001)
->setNoticeId(500)
->setIdOrigine("A888")
......@@ -611,6 +613,7 @@ abstract class BibNumeriqueControllerAlbumMultiMediasTestCase extends AbstractCo
Class_AlbumRessource::newInstanceWithId(9)
->setFichier('the_prophecy.mp3')
->setOrdre(7)]);
$album->assertSave();
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_AlbumCategorie')
->whenCalled('findAllBy')
......
Markdown is supported
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