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:
authordiosmosis <diosmosis@users.noreply.github.com>2019-05-10 11:50:56 +0300
committerGitHub <noreply@github.com>2019-05-10 11:50:56 +0300
commitc6eb52339f3fc496ac43b55c4a0de8d161edbff4 (patch)
treec05d34d97ea14cdb454e5ca3ff961c9449e53095 /tests/PHPUnit/Fixtures
parenta4c8dc92994ccfd5775d080a4f63cb095ab95e19 (diff)
Overwrite direct entry referrer information if campaign referrer is found in later request. (#14273)
* Overwrite direct entry referrer information if campaign referrer is found in later request. * Update for non-campaign referrers as well. * test comment tweaks * Add current tracking URL into site urls in case website has no main url. * Fix a couple issues and start adding tests. * More tests and a fix. * Apply review feedback. * Fix couple tests. * Fix referrer tests. * try to fix random failure * Add note to README.
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r--tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php b/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php
index e4e711cd73..574f93149c 100644
--- a/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php
+++ b/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php
@@ -144,7 +144,7 @@ class SomeVisitsCustomVariablesCampaignsNotHeuristics extends Fixture
$t4->setUrl('http://example.org/index.html');
self::checkResponse($t4->doTrackPageView('Bonjour le monde'));
- // test one action w/ no campaign & then one action w/ a campaign (should result in 2 visits)
+ // test one action w/ no campaign & then one action w/ a campaign (should result in 1 visit w/ overridden referrer)
$t4->setForceVisitDateTime(Date::factory($dateTime)->addHour(10)->getDatetime());
$t4->setUrlReferrer('');
$t4->setUrl('http://example.org/index.html');
@@ -160,7 +160,7 @@ class SomeVisitsCustomVariablesCampaignsNotHeuristics extends Fixture
$t4->setUrl('http://example.org/index.html');
self::checkResponse($t4->doTrackPageView('Dia duit ar domhan'));
- // test one action w/ no referrer website & then one action w/ referrer website (should result in 2 visits)
+ // test one action w/ no referrer website & then one action w/ referrer website (should result in 1 visit w/ overridden referrer)
$t4->setForceVisitDateTime(Date::factory($dateTime)->addHour(11)->getDatetime());
$t4->setUrlReferrer('');
$t4->setUrl('http://example.org/index.html');
@@ -200,6 +200,7 @@ class SomeVisitsCustomVariablesCampaignsNotHeuristics extends Fixture
$t5->setForceVisitDateTime(Date::factory($dateTime)->addHour(2)->getDatetime());
$t5->setUrlReferrer('http://apocalypsenow.org');
$t5->setUrl('http://mutantrights.org');
+
// params supplied, for existing campaign
$t5->setAttributionInfo(json_encode(array('GA Campaign', 'some keyword',
urlencode(Date::factory($dateTime)->addHour(2)->getDatetime()))));