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 'plugins/CoreHome')
-rw-r--r--plugins/CoreHome/Widgets/GetSystemSummary.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/CoreHome/Widgets/GetSystemSummary.php b/plugins/CoreHome/Widgets/GetSystemSummary.php
index 3d56a99790..362fc6817c 100644
--- a/plugins/CoreHome/Widgets/GetSystemSummary.php
+++ b/plugins/CoreHome/Widgets/GetSystemSummary.php
@@ -20,6 +20,7 @@ use Piwik\Widget\WidgetConfig;
class GetSystemSummary extends Widget
{
+ const TEST_MYSQL_VERSION = 'mysql-version-redacted';
/**
* @var StoredSegmentService
*/
@@ -108,6 +109,10 @@ class GetSystemSummary extends Widget
private function getMySqlVersion()
{
+ if (defined('PIWIK_TEST_MODE')) {
+ return self::TEST_MYSQL_VERSION;
+ }
+
$db = Db::get();
return $db->getServerVersion();
}