diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-10-22 08:24:11 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-10-22 08:24:11 +0400 |
commit | e4ff651cb63165cdb0fb063936eace08533fc492 (patch) | |
tree | a006bd3909a8e2495afb93714c9a87273269f229 /plugins/Insights | |
parent | 9425c0f6d0134a65b0e22d9971923d03f83dcfa8 (diff) |
Fix one ModelTest
Diffstat (limited to 'plugins/Insights')
-rw-r--r-- | plugins/Insights/tests/Fixtures/SomeVisitsDifferentPathsOnTwoDays.php | 2 | ||||
-rw-r--r-- | plugins/Insights/tests/Integration/ModelTest.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Insights/tests/Fixtures/SomeVisitsDifferentPathsOnTwoDays.php b/plugins/Insights/tests/Fixtures/SomeVisitsDifferentPathsOnTwoDays.php index e2a8e7f2c4..b6d98eff4b 100644 --- a/plugins/Insights/tests/Fixtures/SomeVisitsDifferentPathsOnTwoDays.php +++ b/plugins/Insights/tests/Fixtures/SomeVisitsDifferentPathsOnTwoDays.php @@ -70,6 +70,8 @@ class SomeVisitsDifferentPathsOnTwoDays extends Fixture $date = $date->addHour(.1); $tracker->setUrl('http://example.org' . $path); $tracker->setIp('156.15.13.' . $numPageViews); + $tracker->setResolution(1000, 1000 + $numPageViews); + $response = $tracker->doTrackPageView('Hello'); self::checkResponse($response); diff --git a/plugins/Insights/tests/Integration/ModelTest.php b/plugins/Insights/tests/Integration/ModelTest.php index 2226684ab7..dda3605309 100644 --- a/plugins/Insights/tests/Integration/ModelTest.php +++ b/plugins/Insights/tests/Integration/ModelTest.php @@ -140,7 +140,7 @@ class ModelTest extends SystemTestCase public function test_getTotalValue_shouldCalculateTotalsAndApplySegment() { - $total = $this->model->getTotalValue(self::$fixture->idSite, 'day', self::$fixture->date1, 'nb_visits', 'visitIp==156.15.13.1'); + $total = $this->model->getTotalValue(self::$fixture->idSite, 'day', self::$fixture->date1, 'nb_visits', 'resolution==1000x1001'); $this->assertEquals(1, $total); } |