diff options
Diffstat (limited to 'tests/PHPUnit')
-rw-r--r-- | tests/PHPUnit/Framework/Mock/FakeAccess.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/Framework/Mock/FakeAccess.php b/tests/PHPUnit/Framework/Mock/FakeAccess.php index be86704305..4f18cd717b 100644 --- a/tests/PHPUnit/Framework/Mock/FakeAccess.php +++ b/tests/PHPUnit/Framework/Mock/FakeAccess.php @@ -100,7 +100,7 @@ class FakeAccess extends Access if (!self::$superUser) { $websitesAccess = self::$idSitesAdmin; } else { - $websitesAccess = API::getInstance()->getAllSitesId(); + return; } $idSites = PiwikSite::getIdSitesFromIdSitesString($idSites); @@ -117,7 +117,7 @@ class FakeAccess extends Access if (!self::$superUser) { $websitesAccess = array_merge(self::$idSitesWrite, self::$idSitesAdmin); } else { - $websitesAccess = API::getInstance()->getAllSitesId(); + return; } $idSites = PiwikSite::getIdSitesFromIdSitesString($idSites); |