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:
authordizzy <diosmosis@users.noreply.github.com>2021-12-01 12:23:43 +0300
committerGitHub <noreply@github.com>2021-12-01 12:23:43 +0300
commitcaf5b95a8ef1728e7f12bee0baf4e51917925152 (patch)
tree153d68d43b1c7b685d66f62d82dc08565e96cedd /plugins
parent24bff6587a518bcfd10156122e1c2d0d205604dd (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')
-rw-r--r--plugins/CoreHome/Widgets/GetSystemSummary.php5
-rw-r--r--plugins/Dashboard/tests/UI/expected-screenshots/DashboardManager_removed.png4
-rw-r--r--plugins/Dashboard/tests/UI/expected-screenshots/Dashboard_removed.png4
3 files changed, 9 insertions, 4 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();
}
diff --git a/plugins/Dashboard/tests/UI/expected-screenshots/DashboardManager_removed.png b/plugins/Dashboard/tests/UI/expected-screenshots/DashboardManager_removed.png
index 7a77408018..0c5f7def65 100644
--- a/plugins/Dashboard/tests/UI/expected-screenshots/DashboardManager_removed.png
+++ b/plugins/Dashboard/tests/UI/expected-screenshots/DashboardManager_removed.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6761130ea8280414c4692cd272961ae1dd0865fb429ed5333497ad83cce4adb8
-size 481164
+oid sha256:810cfc5ce32f1ee1902352bb3304204bfae7b684cae6a183956a694b7bbd06fb
+size 481367
diff --git a/plugins/Dashboard/tests/UI/expected-screenshots/Dashboard_removed.png b/plugins/Dashboard/tests/UI/expected-screenshots/Dashboard_removed.png
index 053668c66f..c062ed194e 100644
--- a/plugins/Dashboard/tests/UI/expected-screenshots/Dashboard_removed.png
+++ b/plugins/Dashboard/tests/UI/expected-screenshots/Dashboard_removed.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5b2d70d1fc339caf961b9372fb33d3b48a472e26ea0fd6e08dbcb6e9c50e1647
-size 742857
+oid sha256:e2628cb9ae6606add2435568934c92bb9b39d8ff4d6b484d306d9c4968f88721
+size 743230