From c53a8449d083a45bcfeedd1cd328ace34a1414b0 Mon Sep 17 00:00:00 2001
From: Laurent Laffont <llaffont@afi-sa.fr>
Date: Mon, 20 Mar 2017 11:28:13 +0100
Subject: [PATCH] hotline #57170 test fix

---
 tests/library/Class/NoticeTest.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/library/Class/NoticeTest.php b/tests/library/Class/NoticeTest.php
index 1e62b93b923..c51c9cbdcff 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',
-- 
GitLab