diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-01-22 07:23:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 07:23:56 +0300 |
commit | f845d5290931829dab8d038ae10991692a387c48 (patch) | |
tree | f27dd2e26f915b35dfe98ea018bcfd373048e9bb /tests/PHPUnit/Integration/SegmentTest.php | |
parent | 2d6c8e597d110e2664a866cf667c2ea6e2cc2909 (diff) |
Add UI test for complex segment + fix couple bugs to get test to pass. (#13909)
* Add UI test for complex segment + fix couple bugs to get test to pass.
* fix test
Diffstat (limited to 'tests/PHPUnit/Integration/SegmentTest.php')
-rw-r--r-- | tests/PHPUnit/Integration/SegmentTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/SegmentTest.php b/tests/PHPUnit/Integration/SegmentTest.php index 0a83dbbd7a..54e74278fa 100644 --- a/tests/PHPUnit/Integration/SegmentTest.php +++ b/tests/PHPUnit/Integration/SegmentTest.php @@ -57,6 +57,7 @@ class SegmentTest extends IntegrationTestCase public function getCommonTestData() { + $encodedComplexValue = urlencode(urlencode('s#2&#--_*+?# #5"\'&<>.22,3')); return array( // Normal segment array('countryCode==France', array( @@ -107,6 +108,15 @@ class SegmentTest extends IntegrationTestCase 'def', 'def', 'def', 'def', 'def', ), )), + + array(urlencode('browserCode!=' . $encodedComplexValue . ',browserCode==' . $encodedComplexValue . ';browserCode!=' . $encodedComplexValue), [ + 'where' => ' (( log_visit.config_browser_name IS NULL OR log_visit.config_browser_name <> ? ) OR log_visit.config_browser_name = ?) AND ( log_visit.config_browser_name IS NULL OR log_visit.config_browser_name <> ? ) ', + 'bind' => [ + 's#2&#--_*+?# #5"\'&<>.22,3', + 's#2&#--_*+?# #5"\'&<>.22,3', + 's#2&#--_*+?# #5"\'&<>.22,3', + ], + ]) ); } |