diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-11-05 01:20:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 01:20:58 +0300 |
commit | afc8bb109c7e0f07b8f16418e18557c981d3aacd (patch) | |
tree | ece9abd04b9cadb432a0ee848926a11098a16827 /tests/PHPUnit/Unit | |
parent | afae5efcc1a81663cdd84da2fb5e0981743d88f4 (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.php | 6 |
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) |