diff options
author | Matthieu Aubry <matt@piwik.org> | 2015-09-15 03:25:11 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2015-09-15 03:25:11 +0300 |
commit | fe519569a0af52305ffd84368c80983331d11e05 (patch) | |
tree | bebbb1c4b11d8d910553bdd22a9fc854f5dd6da9 /tests/PHPUnit/Fixtures | |
parent | 1d805fe626807fd648de68ad8d13cd78fd5dbc97 (diff) | |
parent | 55a902fec68d710310f25da4d593cfe28c86cd1c (diff) |
Merge pull request #8765 from piwik/handle_utf_4bytes_in_urls
Replace all utf8 4-byte characters in tracked urls with �
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r-- | tests/PHPUnit/Fixtures/OneVisitWithAbnormalPageviewUrls.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/PHPUnit/Fixtures/OneVisitWithAbnormalPageviewUrls.php b/tests/PHPUnit/Fixtures/OneVisitWithAbnormalPageviewUrls.php index f7dc5ac337..2685efecd8 100644 --- a/tests/PHPUnit/Fixtures/OneVisitWithAbnormalPageviewUrls.php +++ b/tests/PHPUnit/Fixtures/OneVisitWithAbnormalPageviewUrls.php @@ -63,8 +63,18 @@ class OneVisitWithAbnormalPageviewUrls extends Fixture $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(0.5)->getDatetime()); self::checkResponse($t->doTrackPageView('incredible.title/')); + $t->setUrl('http://www.my.url/ꟽ碌㒧䊶亄ﶆⅅขκもኸόσशμεޖृ'); + $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(0.7)->getDatetime()); + self::checkResponse($t->doTrackPageView('Valid URL, although strange looking')); + + $t->setUrl('https://make.wordpress.org/?emoji=😎l¶m=test'); + $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(0.8)->getDatetime()); + self::checkResponse($t->doTrackPageView('Emoji here: %F0%9F%98%8E')); + + // this pageview should be last $t->setUrl('https://example.org/foo/bar4.html'); $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(0.6)->getDatetime()); self::checkResponse($t->doTrackPageView('incredible.title/')); + } }
\ No newline at end of file |