diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2021-12-01 12:23:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 12:23:43 +0300 |
commit | caf5b95a8ef1728e7f12bee0baf4e51917925152 (patch) | |
tree | 153d68d43b1c7b685d66f62d82dc08565e96cedd /plugins/CoreHome | |
parent | 24bff6587a518bcfd10156122e1c2d0d205604dd (diff) |
do not use real mysql version in tests for running UI tests (#18407)
* do not use real mysql version in tests for running UI tests locally
* undo customalerts update
* update screenshot
* updates expected screenshots
Co-authored-by: sgiehl <stefan@matomo.org>
Diffstat (limited to 'plugins/CoreHome')
-rw-r--r-- | plugins/CoreHome/Widgets/GetSystemSummary.php | 5 |
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(); } |