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 <benakamoorthi@fastmail.fm>2014-08-25 09:07:57 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-08-25 09:07:57 +0400
commitbfd484b35e5ec2544d462c9f5b53fa7e704a65e7 (patch)
treecaa78b6ab49f21244d60b1fc7cc4b869c00ef041 /tests/PHPUnit/Core
parent16f6aaf5e4f1f7ddfc676907d9f95a5881f7ab29 (diff)
Fixing build.
Diffstat (limited to 'tests/PHPUnit/Core')
-rw-r--r--tests/PHPUnit/Core/AssetManagerTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/PHPUnit/Core/AssetManagerTest.php b/tests/PHPUnit/Core/AssetManagerTest.php
index e3cb5ab3fd..2e2f27f498 100644
--- a/tests/PHPUnit/Core/AssetManagerTest.php
+++ b/tests/PHPUnit/Core/AssetManagerTest.php
@@ -12,12 +12,16 @@ use Piwik\AssetManager\UIAssetFetcher\StaticUIAssetFetcher;
use Piwik\Config;
use Piwik\Plugin;
use Piwik\Plugin\Manager;
+use Piwik\EventDispatcher;
require_once PIWIK_INCLUDE_PATH . "/tests/PHPUnit/Core/AssetManager/UIAssetCacheBusterMock.php";
require_once PIWIK_INCLUDE_PATH . "/tests/PHPUnit/Core/AssetManager/PluginManagerMock.php";
require_once PIWIK_INCLUDE_PATH . "/tests/PHPUnit/Core/AssetManager/PluginMock.php";
require_once PIWIK_INCLUDE_PATH . "/tests/PHPUnit/Core/AssetManager/ThemeMock.php";
+/**
+ * @group AssetManagerTest
+ */
class AssetManagerTest extends PHPUnit_Framework_TestCase
{
// todo Theme->rewriteAssetPathIfOverridesFound is not tested
@@ -117,6 +121,8 @@ class AssetManagerTest extends PHPUnit_Framework_TestCase
{
$this->pluginManager = PluginManagerMock::getInstance();
Manager::setSingletonInstance($this->pluginManager);
+
+ EventDispatcher::unsetInstance(); // EventDispatcher stores a reference to Plugin Manager
}
private function setUpPlugins()