aboutsummaryrefslogtreecommitdiffstats
path: root/tests/search/common_test_case.php
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-05-04 18:25:43 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-05-04 18:25:43 +0530
commit3a30bd2753ab56dd5035ebba8cf42850e41c3728 (patch)
tree9c00de9e2a74569bebb6870f75b0af86b9a33244 /tests/search/common_test_case.php
parent2bf01098d2c3e45824448642dde9f1469ec6e588 (diff)
downloadforums-3a30bd2753ab56dd5035ebba8cf42850e41c3728.tar
forums-3a30bd2753ab56dd5035ebba8cf42850e41c3728.tar.gz
forums-3a30bd2753ab56dd5035ebba8cf42850e41c3728.tar.bz2
forums-3a30bd2753ab56dd5035ebba8cf42850e41c3728.tar.xz
forums-3a30bd2753ab56dd5035ebba8cf42850e41c3728.zip
[ticket/11288] add search tests cases
PHPBB3-11288
Diffstat (limited to 'tests/search/common_test_case.php')
-rw-r--r--tests/search/common_test_case.php98
1 files changed, 98 insertions, 0 deletions
diff --git a/tests/search/common_test_case.php b/tests/search/common_test_case.php
index dd04f7048c..029637b00b 100644
--- a/tests/search/common_test_case.php
+++ b/tests/search/common_test_case.php
@@ -86,6 +86,104 @@ abstract class phpbb_search_common_test_case extends phpbb_search_test_case
array('-fooo', '-baar'),
array(),
),
+ array(
+ 'fooo -fooo',
+ 'all',
+ true,
+ array('fooo', '-fooo'),
+ array(),
+ ),
+ array(
+ 'fooo fooo-',
+ 'all',
+ true,
+ array('fooo', 'fooo'),
+ array(),
+ ),
+ array(
+ '-fooo fooo',
+ 'all',
+ true,
+ array('-fooo', 'fooo'),
+ array(),
+ ),
+ array(
+ 'fooo- fooo',
+ 'all',
+ true,
+ array('fooo', 'fooo'),
+ array(),
+ ),
+ array(
+ 'fooo-baar fooo',
+ 'all',
+ true,
+ array('fooo', 'baar', 'fooo'),
+ array(),
+ ),
+ array(
+ 'fooo-baar -fooo',
+ 'all',
+ true,
+ array('fooo', 'baar', '-fooo'),
+ array(),
+ ),
+ array(
+ 'fooo-baar fooo-',
+ 'all',
+ true,
+ array('fooo', 'baar', 'fooo'),
+ array(),
+ ),
+ array(
+ 'fooo-baar baar',
+ 'all',
+ true,
+ array('fooo', 'baar', 'baar'),
+ array(),
+ ),
+ array(
+ 'fooo-baar -baar',
+ 'all',
+ true,
+ array('fooo', 'baar', '-baar'),
+ array(),
+ ),
+ array(
+ 'fooo-baar baar-',
+ 'all',
+ true,
+ array('fooo', 'baar', 'baar'),
+ array(),
+ ),
+ array(
+ 'fooo-baar fooo-baar',
+ 'all',
+ true,
+ array('fooo', 'baar', 'fooo', 'baar'),
+ array(),
+ ),
+ array(
+ 'fooo-baar -fooo-baar',
+ 'all',
+ true,
+ array('fooo', 'baar', '-fooo', 'baar'),
+ array(),
+ ),
+ array(
+ 'fooo-baar fooo-baar-',
+ 'all',
+ true,
+ array('fooo', 'baar', 'fooo', 'baar'),
+ array(),
+ ),
+ array(
+ 'fooo-baar-baaz',
+ 'all',
+ true,
+ array('fooo', 'baar', 'baaz'),
+ array(),
+ ),
);
}