diff --git a/tests/library/Class/NoticeTest.php b/tests/library/Class/NoticeTest.php index 1e62b93b92337941c0d6ec43e10590638fb73293..c51c9cbdcff14aa1c262b45612d5107301830eec 100644 --- a/tests/library/Class/NoticeTest.php +++ b/tests/library/Class/NoticeTest.php @@ -34,7 +34,7 @@ class NoticeFixtures extends TestFixtures { -class NoticeVignetteTest extends Storm_Test_ModelTestCase { +class NoticeVignetteTest extends ModelTestCase { protected $_storm_default_to_volatile = true; public function setUp() { @@ -112,8 +112,11 @@ class NoticeVignetteTest extends Storm_Test_ModelTestCase { $preferences= [ 'thumbnail_fields' => '700-a;856-u']; - Class_Profil::getCurrentProfil() - ->setCfgModules(['recherche' => ['viewnotice'.Class_TypeDoc::DISQUE => $preferences]]); + $this->fixture('Class_Profil', + ['id' => 1, + 'libelle' => 'portail', + 'cfg_modules' => ['recherche' => ['viewnotice'.Class_TypeDoc::DISQUE => $preferences]]]) + ->beCurrentProfil(); $this->fixture('Class_Sitotheque',