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-01-22 07:23:56 +0300
committerGitHub <noreply@github.com>2019-01-22 07:23:56 +0300
commitf845d5290931829dab8d038ae10991692a387c48 (patch)
treef27dd2e26f915b35dfe98ea018bcfd373048e9bb /tests/PHPUnit/Integration/SegmentTest.php
parent2d6c8e597d110e2664a866cf667c2ea6e2cc2909 (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.php10
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',
+ ],
+ ])
);
}