mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/11174] Test for common words.
PHPBB3-11174
This commit is contained in:
@@ -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(),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user