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:
authormattpiwik <matthieu.aubry@gmail.com>2012-11-22 01:31:28 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-11-22 01:31:28 +0400
commit896b80b9df2507fe806a51f1dc85cd1f05fa60a5 (patch)
treeea9386befcc08afed0aeafd714b9ab5f5d12ce06 /tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php
parente6df54362e22a2aec17f67f1eddbb9774f114112 (diff)
Trying again
git-svn-id: http://dev.piwik.org/svn/trunk@7511 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php')
-rwxr-xr-xtests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php b/tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php
index 2fcbc697d3..4c8b59a216 100755
--- a/tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php
+++ b/tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php
@@ -161,7 +161,10 @@ class Test_Piwik_Integration_TwoVisitors_TwoWebsites_DifferentDays extends Integ
// Second new visitor on Idsite 1: one page view
$visitorB = self::getTracker($idSite, $dateTime, $defaultInit = true);
$visitorB->enableBulkTracking();
- $visitorB->setTokenAuth(self::getTokenAuth());
+ // calc token auth by hand in test environment
+ $tokenAuth = md5(
+ Piwik_Config::getInstance()->superuser['login'] . Piwik_Config::getInstance()->superuser['password']);
+ $visitorB->setTokenAuth($tokenAuth);
$visitorB->setIp('100.52.156.83');
$visitorB->setResolution(800, 300);
$visitorB->setForceVisitDateTime(Piwik_Date::factory($dateTime)->addHour(1)->getDatetime());