mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-14 04:30:29 +01:00
[ticket/11174] More tests.
PHPBB3-11174
This commit is contained in:
parent
ed37141f51
commit
1aa0b4567f
@ -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…
x
Reference in New Issue
Block a user