From e45940e969382013cf83a705dd166826def05dea Mon Sep 17 00:00:00 2001 From: Ghislain Loas <ghislo@sandbox.pergame.net> Date: Wed, 28 Jan 2015 09:40:10 +0100 Subject: [PATCH] dev #17514 fix tests errors --- .../opac/controllers/CmsControllerCalendarActionTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/application/modules/opac/controllers/CmsControllerCalendarActionTest.php b/tests/application/modules/opac/controllers/CmsControllerCalendarActionTest.php index 9649a27c33d..b49997b1ee7 100644 --- a/tests/application/modules/opac/controllers/CmsControllerCalendarActionTest.php +++ b/tests/application/modules/opac/controllers/CmsControllerCalendarActionTest.php @@ -75,10 +75,15 @@ class CmsControllerCalendarActionCacheTest extends CmsControllerCalendarActionTe public function setUp() { parent::setUp(); $cache = Storm_Test_ObjectWrapper::mock(); + $cache->whenCalled('save') + ->answers(true); + Storm_Cache::setDefaultZendCache($cache); $module_cal = new ZendAfi_View_Helper_Accueil_Calendar(1, $this->cfg_accueil['modules']['1']); $module_cal->setView(new ZendAfi_Controller_Action_Helper_View()); } + + /** * Test non-regression vu sur Bucarest (prenait le layout normal au lieu du layout iframe) * @test -- GitLab