diff options
Diffstat (limited to 'tests')
-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) |