From caf5b95a8ef1728e7f12bee0baf4e51917925152 Mon Sep 17 00:00:00 2001 From: dizzy Date: Wed, 1 Dec 2021 01:23:43 -0800 Subject: 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 --- plugins/CoreHome/Widgets/GetSystemSummary.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/CoreHome') 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(); } -- cgit v1.2.3