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:
authorThomas Steur <tsteur@users.noreply.github.com>2020-11-05 01:20:58 +0300
committerGitHub <noreply@github.com>2020-11-05 01:20:58 +0300
commitafc8bb109c7e0f07b8f16418e18557c981d3aacd (patch)
treeece9abd04b9cadb432a0ee848926a11098a16827 /tests/PHPUnit/Unit
parentafae5efcc1a81663cdd84da2fb5e0981743d88f4 (diff)
Fix plugin might not be loaded when installing the plugin (#16663)
Diffstat (limited to 'tests/PHPUnit/Unit')
-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)