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
path: root/tests
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-01-11 23:14:30 +0300
committerdiosmosis <benaka@piwik.pro>2015-01-11 23:14:30 +0300
commit3434b89beafe2b81402e227df40aeeec0be9a974 (patch)
treea29d7869cd1aa3929c205fa1952faf74eeb32d46 /tests
parent363b7b6dd045cb70dccb2d6254c0451e20779006 (diff)
Fixes 6971, fix test failure in Login_spec.js (test for formless login failed because test tried to login w/ superuser which is not allowed. Not sure why it only happened now.). Create new user in UITestFixture for this test.
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Fixtures/UITestFixture.php4
m---------tests/PHPUnit/UI0
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/PHPUnit/Fixtures/UITestFixture.php b/tests/PHPUnit/Fixtures/UITestFixture.php
index 5eb6cf2610..cb45ba3b27 100644
--- a/tests/PHPUnit/Fixtures/UITestFixture.php
+++ b/tests/PHPUnit/Fixtures/UITestFixture.php
@@ -54,6 +54,10 @@ class UITestFixture extends SqlDump
DbHelper::createAnonymousUser();
UsersManagerAPI::getInstance()->setSuperUserAccess('superUserLogin', true);
SitesManagerAPI::getInstance()->updateSite(1, null, null, true);
+
+ // create non super user
+ UsersManagerAPI::getInstance()->addUser('oliverqueen', 'smartypants', 'oli@queenindustries.com');
+ UsersManagerAPI::getInstance()->setUserAccess('oliverqueen', 'view', array(1));
}
public function performSetUp($setupEnvironmentOnly = false)
diff --git a/tests/PHPUnit/UI b/tests/PHPUnit/UI
-Subproject 9b3bbac107c0ba91c4543f5da7ba7cf7f818f20
+Subproject ff8c947985c3176a31d39b0ccf3c5fa56201b9e