diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-12-06 14:01:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 14:01:37 +0300 |
commit | 5b94ec76e74c3ce74b99690f92b5d5b2b489e9da (patch) | |
tree | 28ba9cdcdf65276cd7c228db4b38742cb83099d9 /tests/PHPUnit/Fixtures | |
parent | 401977c0b431c756209c64620f74b87fdbb07a50 (diff) |
Add a system test reproducing #10857 (#10970)
* testing referrer website with both HTTP and HTTPS
for https://github.com/piwik/piwik/issues/10857
* Add a system test reproducing #10857
Add a system test reproducing #10857 -> confirmed that Piwik will track referrers from the same HTTP and HTTPS page as different entries.
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r-- | tests/PHPUnit/Fixtures/TwoSitesTwoVisitorsDifferentDays.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PHPUnit/Fixtures/TwoSitesTwoVisitorsDifferentDays.php b/tests/PHPUnit/Fixtures/TwoSitesTwoVisitorsDifferentDays.php index 154dc70c2b..1f6afab1b8 100644 --- a/tests/PHPUnit/Fixtures/TwoSitesTwoVisitorsDifferentDays.php +++ b/tests/PHPUnit/Fixtures/TwoSitesTwoVisitorsDifferentDays.php @@ -135,7 +135,8 @@ class TwoSitesTwoVisitorsDifferentDays extends Fixture // Temporary, until we implement 1st party cookies in PiwikTracker $visitorB->DEBUG_APPEND_URL .= '&_idvc=2&_viewts=' . Date::factory($dateTime)->getTimestamp(); - $visitorB->setUrlReferrer('http://referrer.com/Other_Page.htm'); + $protocol = (0 === $days % 2) ? 'http' : 'https'; + $visitorB->setUrlReferrer($protocol . '://referrer.com/Other_Page.htm'); if( in_array($days, array(2,3,4,$daysToGenerateVisitsFor-1)) ) { $visitorB->setUrl( self::URL_IS_GOAL_WITH_CAMPAIGN_PARAMETERS ); } else { |