From 7ca45f7daadc0b0d0a51015418febaaed4835fba Mon Sep 17 00:00:00 2001 From: Matthias Meusburger <matthias.meusburger@biblibre.com> Date: Thu, 1 Oct 2015 14:54:34 +0200 Subject: [PATCH] hotline #23808 : fix tests --- .../opac/controllers/ProfilOptionsControllerTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php index b790369443e..779e101872d 100644 --- a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php +++ b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php @@ -42,12 +42,12 @@ abstract class ProfilOptionsControllerWithProfilAdulteTestCase extends AbstractC ->answers(1) ->whenCalled('findAllByRequeteRecherche') - ->answers([$this->fixture('Class_Notice',['id' => 2, - 'annee' => 2009, - 'clef_oeuvre' => 'HPELPA', - 'clef_alpha' => 'POTTER', - 'exemplaires' => []])]); - + ->answers([Class_Notice::newInstanceWithId(2, + [ + 'annee' => 2009, + 'clef_oeuvre' => 'HPELPA', + 'clef_alpha' => 'POTTER', + 'exemplaires' => []])]); $this->setUpProfilAdulte(); $this->setUpProfilJeunesse(); } -- GitLab