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:
authordiosmosis <benaka@piwik.pro>2014-11-17 11:57:18 +0300
committerdiosmosis <benaka@piwik.pro>2014-11-17 11:57:18 +0300
commit2b68442ceda0136fb7bd2a40848fe3f69db8e828 (patch)
tree9b8ce9fbae34cf5fc04b43b4441defa861f65bd7 /tests
parentdb9fd9a3dec80aad0ebfd71612997550d615ea45 (diff)
Add two more visits to fixture and regenerate OmniFixture.
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php16
-rw-r--r--tests/resources/OmniFixture-dump.sql.gzbin650895 -> 658143 bytes
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php b/tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php
index 07e2ca357c..b516c85d65 100644
--- a/tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php
+++ b/tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php
@@ -32,6 +32,8 @@ class ManySitesImportedLogsWithXssAttempts extends ManySitesImportedLogs
{
parent::setUp();
+ $this->trackVisitWithActionsXss();
+
$this->trackVisitsForRealtimeMap(Date::factory('2012-08-11 11:22:33'), $createSeperateVisitors = false);
$this->addAnnotations();
@@ -120,4 +122,18 @@ class ManySitesImportedLogsWithXssAttempts extends ManySitesImportedLogs
$t->setLongitude(-46.64);
self::checkResponse($t->doTrackPageView('incredible title!'));
}
+
+ private function trackVisitWithActionsXss()
+ {
+ $urlXss = self::makeXssContent('page url');
+ $titleXss = self::makeXssContent('page title');
+
+ $t = self::getTracker($this->idSite, $this->dateTime, $defaultInit= true);
+ $t->setUrl('http://example.org/' . urlencode($urlXss));
+ self::checkResponse($t->doTrackPageView(urlencode($titleXss)));
+
+ $t->setForceVisitDateTime(Date::factory($this->dateTime)->addHour(1)->getDateTime());
+ $t->setUrl('http://example.org/' . $urlXss);
+ self::checkResponse($t->doTrackPageView($titleXss));
+ }
} \ No newline at end of file
diff --git a/tests/resources/OmniFixture-dump.sql.gz b/tests/resources/OmniFixture-dump.sql.gz
index a7151a5d6b..710962a0b7 100644
--- a/tests/resources/OmniFixture-dump.sql.gz
+++ b/tests/resources/OmniFixture-dump.sql.gz
Binary files differ