diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-12-14 02:47:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-14 02:47:48 +0300 |
commit | 65e6b8ad67bf427b1eefc7d5ebbaa50bba2910d3 (patch) | |
tree | 6d39fdaa5dac7fcf691e8497d852b296fa50c72e /tests/PHPUnit | |
parent | 89793485a8cae77dc49632720de62626dd109b87 (diff) |
Fix one regression in UI tests: ui test fixture was failing at the end of the setup phase (#11003)
* Two UI tests suite were not running because of an authentication error in the UItestFixture
This should fix it
* Valid screenshot tests
Diffstat (limited to 'tests/PHPUnit')
-rw-r--r-- | tests/PHPUnit/Fixtures/UITestFixture.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PHPUnit/Fixtures/UITestFixture.php b/tests/PHPUnit/Fixtures/UITestFixture.php index 7b7517a14f..403abac8d5 100644 --- a/tests/PHPUnit/Fixtures/UITestFixture.php +++ b/tests/PHPUnit/Fixtures/UITestFixture.php @@ -17,6 +17,7 @@ use Piwik\Db; use Piwik\DbHelper; use Piwik\FrontController; use Piwik\Option; +use Piwik\Piwik; use Piwik\Plugins\PrivacyManager\IPAnonymizer; use Piwik\Plugins\SegmentEditor\API as APISegmentEditor; use Piwik\Plugins\UserCountry\LocationProvider; @@ -231,7 +232,7 @@ class UITestFixture extends SqlDump $oldGet = $_GET; $_GET['idSite'] = 1; - $_GET['token_auth'] = Fixture::getTokenAuth(); + $_GET['token_auth'] = Piwik::getCurrentUserTokenAuth(); // collect widgets & sort them so widget order is not important $allWidgets = Request::processRequest('API.getWidgetMetadata', array( |