diff options
author | diosmosis <benaka@piwik.pro> | 2015-10-11 22:39:56 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-10-11 22:49:37 +0300 |
commit | 5ec136667eeb4ab84921c483ad6d6127ef259e17 (patch) | |
tree | 94cfbdd42c7e486381562daf91d7a14e0441c88c /tests/PHPUnit/Fixtures | |
parent | 2fe8faacdbde76121dfabca6088a300d6e8fae7d (diff) |
Launch archiving in UITestFixture so it is not launched by multiple requests in UI Tests.
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r-- | tests/PHPUnit/Fixtures/UITestFixture.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/PHPUnit/Fixtures/UITestFixture.php b/tests/PHPUnit/Fixtures/UITestFixture.php index eb35b24114..1e9543eb04 100644 --- a/tests/PHPUnit/Fixtures/UITestFixture.php +++ b/tests/PHPUnit/Fixtures/UITestFixture.php @@ -25,6 +25,7 @@ use Piwik\Tests\Framework\Fixture; use Piwik\WidgetsList; use Piwik\Tests\Framework\OverrideLogin; use Piwik\Tests\Framework\TestCase\SystemTestCase; +use Piwik\Plugins\VisitsSummary\API as VisitsSummaryAPI; /** * Fixture for UI tests. @@ -67,6 +68,9 @@ class UITestFixture extends SqlDump // create non super user UsersManagerAPI::getInstance()->addUser('oliverqueen', 'smartypants', 'oli@queenindustries.com'); UsersManagerAPI::getInstance()->setUserAccess('oliverqueen', 'view', array(1)); + + // launch archiving so UI test requests don't launch it + VisitsSummaryAPI::getInstance()->get('all', 'year', '2012-08-09'); } public function performSetUp($setupEnvironmentOnly = false) |