From 1577e972ba0ac31488378b43ba4b9043cb89ed59 Mon Sep 17 00:00:00 2001 From: sgiehl <stefangiehl@gmail.com> Date: Fri, 31 Aug 2012 22:57:23 +0000 Subject: [PATCH] refs #3227 reset fakeaccess data to avoid problems between some tests git-svn-id: http://dev.piwik.org/svn/trunk@6894 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- tests/PHPUnit/FakeAccess.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/PHPUnit/FakeAccess.php b/tests/PHPUnit/FakeAccess.php index fe43dd1892..069b41c697 100644 --- a/tests/PHPUnit/FakeAccess.php +++ b/tests/PHPUnit/FakeAccess.php @@ -15,7 +15,15 @@ class FakeAccess public static $idSitesAdmin = array(); public static $idSitesView = array(); public static $identity = 'superUserLogin'; - + + public function __construct() + { + self::$superUser = false; + self::$idSitesAdmin = array(); + self::$idSitesView = array(); + self::$identity = 'superUserLogin'; + } + public static function setIdSitesAdmin($ids) { self::$superUser = false; -- GitLab