mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11174] More tests.
PHPBB3-11174
This commit is contained in:
parent
ed37141f51
commit
1aa0b4567f
1 changed files with 24 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue