diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-08 10:23:28 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-08 10:23:28 -0500 |
commit | 1aa0b4567fc1849712471e129b868927f400f773 (patch) | |
tree | d34413dd81a6c80af7ddcbe364c10ac7037db526 /tests | |
parent | ed37141f512f857311b64bb283943634eba84525 (diff) | |
download | forums-1aa0b4567fc1849712471e129b868927f400f773.tar forums-1aa0b4567fc1849712471e129b868927f400f773.tar.gz forums-1aa0b4567fc1849712471e129b868927f400f773.tar.bz2 forums-1aa0b4567fc1849712471e129b868927f400f773.tar.xz forums-1aa0b4567fc1849712471e129b868927f400f773.zip |
[ticket/11174] More tests.
PHPBB3-11174
Diffstat (limited to 'tests')
-rw-r--r-- | tests/search/native_test.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/search/native_test.php b/tests/search/native_test.php index 15b4644498..8638a914ba 100644 --- a/tests/search/native_test.php +++ b/tests/search/native_test.php @@ -76,6 +76,29 @@ class phpbb_search_native_test extends phpbb_database_test_case array(1, 2), array(), ), + // leading, trailing and multiple spaces + array( + ' foo bar ', + 'all', + true, + array(1, 2), + array(), + ), + // words too short + array( + 'f', + 'all', + false, + array(), + array(), + ), + array( + 'f o o', + 'all', + false, + array(), + array(), + ), array( 'foo -bar', 'all', @@ -83,6 +106,7 @@ class phpbb_search_native_test extends phpbb_database_test_case array(1), array(2), ), + // all negative array( '-foo', 'all', |