Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-06-01 03:08:04 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-03 20:01:33 +0300
commit3d20112b66daa5b609dc460399c61262844572be (patch)
treea63d20035ce85f838b5cc3f1afebadd459082b4c /plugins/Goals/tests
parent6553f8533f54981a179b9e953323e8737b47d438 (diff)
Fixing all tests that use Access::setSingletonInstance().
Diffstat (limited to 'plugins/Goals/tests')
-rw-r--r--plugins/Goals/tests/Integration/APITest.php8
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()
+ );
+ }
}