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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-06-19 13:13:03 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-06-19 13:13:03 +0300
commit401f59d168d3a22b694170b9db32f4fe19b1dc5e (patch)
treec0142d424fd4436f657de477795078b1ace9b13f /tests/PHPUnit/Framework/TestCase
parent7a23a898cac3694632542462a54dd8ebfcc7ba68 (diff)
Resolving a problem with global state messing up with tests
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase')
-rw-r--r--tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php b/tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php
index a523deda05..f931366ea5 100644
--- a/tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php
+++ b/tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php
@@ -11,6 +11,7 @@ namespace Piwik\Tests\Framework\TestCase;
use Piwik\Access;
use Piwik\Config;
use Piwik\Db;
+use Piwik\Menu\MenuAbstract;
use Piwik\Tests\Framework\Fixture;
use Piwik\Cache as PiwikCache;
use Piwik\Tests\Framework\TestingEnvironmentVariables;
@@ -88,6 +89,7 @@ abstract class IntegrationTestCase extends SystemTestCase
PiwikCache::getEagerCache()->flushAll();
PiwikCache::getTransientCache()->flushAll();
+ MenuAbstract::clearMenus();
}
/**