mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +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>
|
||||||
<value>bar</value>
|
<value>bar</value>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<value>commonword</value>
|
||||||
|
<value>commonword</value>
|
||||||
|
<value>commonword</value>
|
||||||
|
</row>
|
||||||
</table>
|
</table>
|
||||||
<table name="phpbb_search_wordlist">
|
<table name="phpbb_search_wordlist">
|
||||||
<column>word_id</column>
|
<column>word_id</column>
|
||||||
|
@ -29,5 +34,10 @@
|
||||||
<value>bar</value>
|
<value>bar</value>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<value>3</value>
|
||||||
|
<value>commonword</value>
|
||||||
|
<value>1</value>
|
||||||
|
</row>
|
||||||
</table>
|
</table>
|
||||||
</dataset>
|
</dataset>
|
||||||
|
|
|
@ -121,6 +121,22 @@ class phpbb_search_native_test extends phpbb_database_test_case
|
||||||
array(),
|
array(),
|
||||||
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