From eba0fdd76e0ec6e985fcdce7f9d47b212e4452e0 Mon Sep 17 00:00:00 2001 From: gloas <gloas@afi-sa.fr> Date: Tue, 13 Dec 2016 16:12:35 +0100 Subject: [PATCH] dev #14141 fix mock error --- .../opac/controllers/RechercheControllerTest.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/application/modules/opac/controllers/RechercheControllerTest.php b/tests/application/modules/opac/controllers/RechercheControllerTest.php index f76a8f762b6..7c71ff9890c 100644 --- a/tests/application/modules/opac/controllers/RechercheControllerTest.php +++ b/tests/application/modules/opac/controllers/RechercheControllerTest.php @@ -1179,8 +1179,22 @@ class RechercheAvanceeControllerSimpleActionWithDefaultConfigTest extends Recher "id" => "M12", "libelle" => "DVD", "nombre" => 5], + ]]) - ]]); + ->whenCalled('setViewMode') + ->answers($mock_search_result) + + ->whenCalled('setDuration') + ->answers($mock_search_result) + + ->whenCalled('getViewMode') + ->answers(4) + + ->whenCalled('getDuration') + ->answers(0.4) + + ->whenCalled('getRecords') + ->answers([]); $mock_moteur_recherche ->whenCalled('lancerRecherche') -- GitLab