mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/11174] Test for common words.
PHPBB3-11174
This commit is contained in:
parent
1aa0b4567f
commit
e523517e03
2 changed files with 26 additions and 0 deletions
|
@ -14,6 +14,11 @@
|
|||
<value>bar</value>
|
||||
<value>bar</value>
|
||||
</row>
|
||||
<row>
|
||||
<value>commonword</value>
|
||||
<value>commonword</value>
|
||||
<value>commonword</value>
|
||||
</row>
|
||||
</table>
|
||||
<table name="phpbb_search_wordlist">
|
||||
<column>word_id</column>
|
||||
|
@ -29,5 +34,10 @@
|
|||
<value>bar</value>
|
||||
<value>0</value>
|
||||
</row>
|
||||
<row>
|
||||
<value>3</value>
|
||||
<value>commonword</value>
|
||||
<value>1</value>
|
||||
</row>
|
||||
</table>
|
||||
</dataset>
|
||||
|
|
|
@ -121,6 +121,22 @@ class phpbb_search_native_test extends phpbb_database_test_case
|
|||
array(),
|
||||
array(),
|
||||
),
|
||||
// all common
|
||||
array(
|
||||
'commonword',
|
||||
'all',
|
||||
false,
|
||||
array(),
|
||||
array(),
|
||||
),
|
||||
// some common
|
||||
array(
|
||||
'commonword foo',
|
||||
'all',
|
||||
true,
|
||||
array(1),
|
||||
array(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue