diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-02-09 07:21:12 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-02-09 07:21:12 +0300 |
commit | 19aec4a4c825fd9a2f2d7a8e381b2c6c246a9121 (patch) | |
tree | baf1c961a33ff04a7908151b5bd4551c4753a1ff /plugins | |
parent | a88a6f1dad40265c087f45ee8cde3fd42006f2a7 (diff) |
Fixing integration tests
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Goals/tests/Integration/APITest.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Goals/tests/Integration/APITest.php b/plugins/Goals/tests/Integration/APITest.php index a4e850a51f..5b0d97c9cb 100644 --- a/plugins/Goals/tests/Integration/APITest.php +++ b/plugins/Goals/tests/Integration/APITest.php @@ -12,6 +12,7 @@ use Piwik\Access; use Piwik\Piwik; use Piwik\Plugins\Goals\API; use Piwik\Tests\Framework\Fixture; +use Piwik\Tests\Framework\Mock\FakeAccess; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; /** @@ -224,10 +225,10 @@ class APITest extends IntegrationTestCase protected function setNonAdminUser() { - $pseudoMockAccess = new \FakeAccess; - \FakeAccess::setSuperUserAccess(false); - \FakeAccess::$idSitesView = array(99); - \FakeAccess::$identity = 'aUser'; + $pseudoMockAccess = new FakeAccess; + FakeAccess::setSuperUserAccess(false); + FakeAccess::$idSitesView = array(99); + FakeAccess::$identity = 'aUser'; Access::setSingletonInstance($pseudoMockAccess); } |