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 'core/Plugin/Manager.php')
-rw-r--r--core/Plugin/Manager.php65
1 files changed, 11 insertions, 54 deletions
diff --git a/core/Plugin/Manager.php b/core/Plugin/Manager.php
index 6be38939dd..1a53da6365 100644
--- a/core/Plugin/Manager.php
+++ b/core/Plugin/Manager.php
@@ -72,60 +72,17 @@ class Manager extends Singleton
'LeftMenu'
);
- public static $pluginsToLoadForTests = array(
- "CorePluginsAdmin",
- "CoreAdminHome",
- "CoreHome",
- "Proxy",
- "API",
- "Widgetize",
- "Transitions",
- "LanguagesManager",
- "Actions",
- "Dashboard",
- "MultiSites",
- "Referrers",
- "UserSettings",
- "Goals",
- "SEO",
- "UserCountry",
- "VisitsSummary",
- "VisitFrequency",
- "VisitTime",
- "VisitorInterest",
- "ExampleAPI",
- "ExamplePlugin",
- "ExampleRssWidget",
- "Provider",
- "Feedback",
- "Login",
- "UsersManager",
- "SitesManager",
- "Installation",
- "CoreUpdater",
- "ScheduledReports",
- "UserCountryMap",
- "Live",
- "CustomVariables",
- "PrivacyManager",
- "ImageGraph",
- "Annotations",
- "MobileMessaging",
- "Overlay",
- "SegmentEditor",
- "DevicesDetection",
- "DBStats",
- 'ExampleUI',
- "TasksTimetable",
- "Morpheus",
- "Zeitgeist",
- "CustomAlerts",
- "VisitorGenerator",
- "SecurityInfo",
- "ExampleSettingsPlugin",
- "TreemapVisualization",
- "Events"
- );
+ public static function getPluginsToLoadDuringTests()
+ {
+ $manager = \Piwik\Plugin\Manager::getInstance();
+ $toLoad = array();
+ foreach($manager->readPluginsDirectory() as $plugin) {
+ if($manager->isPluginBundledWithCore($plugin)) {
+ $toLoad[] = $plugin;
+ }
+ }
+ return $toLoad;
+ }
public function getCorePluginsDisabledByDefault()
{