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:
authorStefan Giehl <stefan@matomo.org>2020-03-24 11:14:51 +0300
committerGitHub <noreply@github.com>2020-03-24 11:14:51 +0300
commitdc45e00e44ba2ef1dcb9628ee706b871fc242d0f (patch)
tree69fff8408a08d026f4897706b01264746f4dddc3 /tests/resources/install-matomo.php
parenta02376ecf678a9c1678bc9083a2aea69d4842f7d (diff)
Regenerates Omnifixture (#15520)
* updates Omnifixture * fix some namespaces * updates some outdated urls * use correct method * update expected UI files * ensure popover param is not sanitized * try to fix one click update ui test until 4.x stable release * fix jstracker ui test * set now timestamp for realtime test * replace some changing ids to avoid changes on omnifixture update * ui files
Diffstat (limited to 'tests/resources/install-matomo.php')
-rw-r--r--tests/resources/install-matomo.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/resources/install-matomo.php b/tests/resources/install-matomo.php
index b9e03b88ee..cb68228d71 100644
--- a/tests/resources/install-matomo.php
+++ b/tests/resources/install-matomo.php
@@ -91,7 +91,12 @@ function createSuperUser() {
$user = $model->getUser($login);
if (empty($user)) {
- $model->addUser($login, $password, 'hello@example.org', Date::now()->getDatetime());
+ // @todo remove once there is a first stable 4.0 release
+ if (version_compare(\Piwik\Version::VERSION, '4.0.0-b1', '<')) {
+ $model->addUser($login, $password, 'hello@example.org', $login, '01234567890123456789012345678912', Date::now()->getDatetime());
+ } else {
+ $model->addUser($login, $password, 'hello@example.org', Date::now()->getDatetime());
+ }
} else {
$model->updateUser($login, $password, 'hello@example.org');
}