diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-02-09 07:22:23 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-02-09 07:22:23 +0300 |
commit | 525232d14bd926ef7a2b982dbfe101d153494cdf (patch) | |
tree | ad838e99980b0f2073343b52a8cdde19fa4651a5 /plugins | |
parent | 0aa2f6df30be3d9c5f4facb8fca9f2e969e7ae8d (diff) |
Fixing integration tests
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ScheduledReports/tests/Integration/ScheduledReportsTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ScheduledReports/tests/Integration/ScheduledReportsTest.php b/plugins/ScheduledReports/tests/Integration/ScheduledReportsTest.php index dfe17b9dfd..7b2a2ae655 100644 --- a/plugins/ScheduledReports/tests/Integration/ScheduledReportsTest.php +++ b/plugins/ScheduledReports/tests/Integration/ScheduledReportsTest.php @@ -7,12 +7,14 @@ */ namespace Piwik\Plugins\ScheduledReports\tests; + use Piwik\Access; use Piwik\Db; use Piwik\Piwik; use Piwik\Plugins\ScheduledReports\API; use Piwik\Plugins\ScheduledReports\ScheduledReports; use Piwik\Tests\Framework\Fixture; +use Piwik\Tests\Framework\Mock\FakeAccess; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; /** @@ -155,7 +157,7 @@ class ScheduledReportsTest extends IntegrationTestCase private function setIdentity($login) { - $pseudoMockAccess = new \FakeAccess(); + $pseudoMockAccess = new FakeAccess(); $pseudoMockAccess::$identity = $login; $pseudoMockAccess::$superUser = true; Access::setSingletonInstance($pseudoMockAccess); |