diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php index b790369443ef36fd59a4d4616258ca4800c1a1df..779e101872d096abfdab79c0835153f85d30d91c 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(); }