diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-09-15 03:11:32 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-09-15 03:11:32 +0300 |
commit | 55a902fec68d710310f25da4d593cfe28c86cd1c (patch) | |
tree | 622a4ea238e33a13846b525276a350fb85442f85 /tests/PHPUnit/Fixtures | |
parent | 355164d42782e226ba96c540699ad6af11ec1ed1 (diff) |
Add System tests for URL tracking & removing emoji characters
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 |