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
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Unit/AssetManager/PluginManagerMock.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/PHPUnit/Unit/AssetManager/PluginManagerMock.php b/tests/PHPUnit/Unit/AssetManager/PluginManagerMock.php
index 9c1e5b901a..fbf1fc989d 100644
--- a/tests/PHPUnit/Unit/AssetManager/PluginManagerMock.php
+++ b/tests/PHPUnit/Unit/AssetManager/PluginManagerMock.php
@@ -33,6 +33,12 @@ class PluginManagerMock extends Manager
$this->plugins = $plugins;
}
+ public function isPluginLoaded($name)
+ {
+ $plugin = $this->getLoadedPlugin($name);
+ return !empty($plugin);
+ }
+
public function getLoadedPlugin($name)
{
foreach($this->plugins as $plugin)