Commit 6c4a37a8 authored by Laurent's avatar Laurent

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

parent 43af254f
- 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 { ...@@ -158,7 +158,7 @@ class Class_AlbumRessource extends Storm_Model_Abstract {
* @return String * @return String
*/ */
public function getAuteur() { public function getAuteur() {
return $this->getAlbum()->getAuteur(); return $this->getAlbum()->getMainAuthorName();
} }
......
...@@ -545,7 +545,9 @@ class BibNumeriqueControllerViewCategorieActionLaBibleDeSouvignyTest extends Bib ...@@ -545,7 +545,9 @@ class BibNumeriqueControllerViewCategorieActionLaBibleDeSouvignyTest extends Bib
abstract class BibNumeriqueControllerAlbumMultiMediasTestCase extends AbstractControllerTestCase { abstract class BibNumeriqueControllerAlbumMultiMediasTestCase extends AbstractControllerTestCase {
protected $_xpath; protected
$_xpath,
$_storm_default_to_volatile = true;
public function setUp() { public function setUp() {
parent::setUp(); parent::setUp();
...@@ -556,7 +558,7 @@ abstract class BibNumeriqueControllerAlbumMultiMediasTestCase extends AbstractCo ...@@ -556,7 +558,7 @@ abstract class BibNumeriqueControllerAlbumMultiMediasTestCase extends AbstractCo
->beDiaporama() ->beDiaporama()
->setTitre('Plein de medias') ->setTitre('Plein de medias')
->setSousTitre('Pour tester') ->setSousTitre('Pour tester')
->setAuteur('Suzanne Collins') ->addAuthor('Suzanne Collins')
->setAnnee(2001) ->setAnnee(2001)
->setNoticeId(500) ->setNoticeId(500)
->setIdOrigine("A888") ->setIdOrigine("A888")
...@@ -611,6 +613,7 @@ abstract class BibNumeriqueControllerAlbumMultiMediasTestCase extends AbstractCo ...@@ -611,6 +613,7 @@ abstract class BibNumeriqueControllerAlbumMultiMediasTestCase extends AbstractCo
Class_AlbumRessource::newInstanceWithId(9) Class_AlbumRessource::newInstanceWithId(9)
->setFichier('the_prophecy.mp3') ->setFichier('the_prophecy.mp3')
->setOrdre(7)]); ->setOrdre(7)]);
$album->assertSave();
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_AlbumCategorie') Storm_Test_ObjectWrapper::onLoaderOfModel('Class_AlbumCategorie')
->whenCalled('findAllBy') ->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