diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-01 03:08:04 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-03 20:01:33 +0300 |
commit | 3d20112b66daa5b609dc460399c61262844572be (patch) | |
tree | a63d20035ce85f838b5cc3f1afebadd459082b4c /plugins/Goals/tests | |
parent | 6553f8533f54981a179b9e953323e8737b47d438 (diff) |
Fixing all tests that use Access::setSingletonInstance().
Diffstat (limited to 'plugins/Goals/tests')
-rw-r--r-- | plugins/Goals/tests/Integration/APITest.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Goals/tests/Integration/APITest.php b/plugins/Goals/tests/Integration/APITest.php index 5b0d97c9cb..3495fa0a15 100644 --- a/plugins/Goals/tests/Integration/APITest.php +++ b/plugins/Goals/tests/Integration/APITest.php @@ -225,11 +225,15 @@ class APITest extends IntegrationTestCase protected function setNonAdminUser() { - $pseudoMockAccess = new FakeAccess; FakeAccess::setSuperUserAccess(false); FakeAccess::$idSitesView = array(99); FakeAccess::$identity = 'aUser'; - Access::setSingletonInstance($pseudoMockAccess); } + public function provideContainerConfig() + { + return array( + 'Piwik\Access' => new FakeAccess() + ); + } } |