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:
Diffstat (limited to 'tests/PHPUnit/Framework/TestingEnvironmentManipulator.php')
-rw-r--r--tests/PHPUnit/Framework/TestingEnvironmentManipulator.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestingEnvironmentManipulator.php b/tests/PHPUnit/Framework/TestingEnvironmentManipulator.php
index e9a5a9cb81..1138b3ca71 100644
--- a/tests/PHPUnit/Framework/TestingEnvironmentManipulator.php
+++ b/tests/PHPUnit/Framework/TestingEnvironmentManipulator.php
@@ -253,6 +253,10 @@ class TestingEnvironmentManipulator implements EnvironmentManipulator
$plugins = $this->getPluginAndRequiredPlugins($pluginName, $plugins);
}
+ $pluginsToUnload = $this->vars->pluginsToUnload ?? [];
+
+ $plugins = array_diff($plugins, $pluginsToUnload);
+
return $plugins;
}