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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-05-20 01:57:07 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-05-20 01:57:07 +0400
commit072c46f97db403c1fe29a33395441696a7ee990f (patch)
tree8582ea9450dc02194f7159cbdfd2d4cdb8f1a03d /tests
parent8a8ce3eccb13c11037b79112513bcbe6ef7e2ccf (diff)
Fix two other benchmarks.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/PHPUnit/Benchmarks/Fixtures/OneSiteTwelveThousandVisitsOneYear.php1
-rwxr-xr-xtests/PHPUnit/Benchmarks/Fixtures/ThousandSitesTwelveVisitsEachOneDay.php5
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/PHPUnit/Benchmarks/Fixtures/OneSiteTwelveThousandVisitsOneYear.php b/tests/PHPUnit/Benchmarks/Fixtures/OneSiteTwelveThousandVisitsOneYear.php
index 1d7917dd08..fcded59612 100755
--- a/tests/PHPUnit/Benchmarks/Fixtures/OneSiteTwelveThousandVisitsOneYear.php
+++ b/tests/PHPUnit/Benchmarks/Fixtures/OneSiteTwelveThousandVisitsOneYear.php
@@ -50,6 +50,7 @@ class Piwik_Test_Fixture_OneSiteTwelveThousandVisitsOneYear
$ip = "157.5.6." . ($visitor + 1);
$t->setIp($ip);
+ $t->setNewVisitorId();
$t->setForceVisitDateTime($visitTime);
foreach ($urls as $url => $title) {
diff --git a/tests/PHPUnit/Benchmarks/Fixtures/ThousandSitesTwelveVisitsEachOneDay.php b/tests/PHPUnit/Benchmarks/Fixtures/ThousandSitesTwelveVisitsEachOneDay.php
index 637a83bb5d..80442430eb 100755
--- a/tests/PHPUnit/Benchmarks/Fixtures/ThousandSitesTwelveVisitsEachOneDay.php
+++ b/tests/PHPUnit/Benchmarks/Fixtures/ThousandSitesTwelveVisitsEachOneDay.php
@@ -9,7 +9,7 @@
/**
* Reusable fixture. Tracks twelve thousand page views for 1000 sites on one day.
*/
-class Piwik_Test_Fixture_ThousandSitesTwelvePageViewsEachOneDay
+class Piwik_Test_Fixture_ThousandSitesTwelveVisitsEachOneDay
{
public $date = '2010-01-01';
public $period = 'day';
@@ -55,10 +55,11 @@ class Piwik_Test_Fixture_ThousandSitesTwelvePageViewsEachOneDay
foreach ($visitTimes as $visitTime) {
foreach ($allIdSites as $idSite) {
for ($visitor = 0; $visitor != 3; ++$visitor) {
- $t = BenchmarkTestCase::getLocalTracker($this->idSite);
+ $t = BenchmarkTestCase::getLocalTracker($idSite);
$ip = "157.5.6." . ($visitor + 1);
$t->setIp($ip);
+ $t->setNewVisitorId();
$t->setForceVisitDateTime($visitTime);
foreach ($urls as $url => $title) {