1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-23 09:07:43 +02:00

[ticket/11174] Test for common words.

PHPBB3-11174
This commit is contained in:
Oleg Pudeyev 2012-11-08 11:01:34 -05:00
parent 1aa0b4567f
commit e523517e03
2 changed files with 26 additions and 0 deletions
tests/search

@ -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(),
),
);
}