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:
authorThomas Steur <thomas.steur@gmail.com>2016-10-11 00:06:29 +0300
committerThomas Steur <thomas.steur@gmail.com>2016-10-11 00:06:29 +0300
commit988c39979ba9ea9d2380a581c83ce4e95e1182ca (patch)
tree6a27ca47efd8c9078ff49a150b8a298ca7bee46d /tests/PHPUnit/Fixtures
parente2c52644eec2c7c5207e7abf5612987384ffd246 (diff)
fix min and max event value is summed
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r--tests/PHPUnit/Fixtures/ThreeVisitsWithCustomEvents.php (renamed from tests/PHPUnit/Fixtures/TwoVisitsWithCustomEvents.php)11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/PHPUnit/Fixtures/TwoVisitsWithCustomEvents.php b/tests/PHPUnit/Fixtures/ThreeVisitsWithCustomEvents.php
index fc3f12d979..3471c3b3e7 100644
--- a/tests/PHPUnit/Fixtures/TwoVisitsWithCustomEvents.php
+++ b/tests/PHPUnit/Fixtures/ThreeVisitsWithCustomEvents.php
@@ -15,7 +15,7 @@ use PiwikTracker;
/**
* Tracks custom events
*/
-class TwoVisitsWithCustomEvents extends Fixture
+class ThreeVisitsWithCustomEvents extends Fixture
{
public $dateTime = '2010-01-03 11:22:33';
public $idSite = 1;
@@ -68,6 +68,15 @@ class TwoVisitsWithCustomEvents extends Fixture
$this->trackMusicRatings($vis2);
$this->trackMovieWatchingIncludingInterval($vis2);
+ $this->dateTime = Date::factory($this->dateTime)->addDay(1);
+ $vis3 = self::getTracker($this->idSite, $this->dateTime, $useDefault = true, $uselocal);
+ $vis3->setIp('111.1.1.2');
+ $vis3->setPlugins($flash = false, $java = false, $director = true);
+
+ $this->trackMusicPlaying($vis3);
+ $this->trackMusicRatings($vis3);
+ $this->trackMovieWatchingIncludingInterval($vis3);
+
}
private function moveTimeForward(PiwikTracker $vis, $minutes)