diff options
author | diosmosis <benaka@piwik.pro> | 2015-01-11 23:14:30 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-01-11 23:14:30 +0300 |
commit | 3434b89beafe2b81402e227df40aeeec0be9a974 (patch) | |
tree | a29d7869cd1aa3929c205fa1952faf74eeb32d46 /tests | |
parent | 363b7b6dd045cb70dccb2d6254c0451e20779006 (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.php | 4 | ||||
m--------- | tests/PHPUnit/UI | 0 |
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 |