dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
944e196
)
test: unwanted search namespace should not be there
author
Liangent
<liangent@gmail.com>
Wed, 6 Jun 2012 13:50:59 +0000
(21:50 +0800)
committer
Antoine Musso
<hashar@free.fr>
Fri, 31 Aug 2012 15:56:11 +0000
(17:56 +0200)
When Special:Search uses User preferences for search, make sure that no
unwanted namespaces have been used.
Change-Id: Ibcb23c812bf1e02a398ffbf3a276afc1b1f367cf
tests/phpunit/includes/specials/SpecialSearchTest.php
patch
|
blob
|
history
diff --git
a/tests/phpunit/includes/specials/SpecialSearchTest.php
b/tests/phpunit/includes/specials/SpecialSearchTest.php
index
ea9d553
..
20e42a6
100644
(file)
--- a/
tests/phpunit/includes/specials/SpecialSearchTest.php
+++ b/
tests/phpunit/includes/specials/SpecialSearchTest.php
@@
-87,6
+87,14
@@
class SpecialSearchTest extends MediaWikiTestCase {
'advanced', array( 2, 14 ),
'Bug 33583: search with no option should honor User search preferences'
),
+ array(
+ $EMPTY_REQUEST, array_fill_keys( array_map( function( $ns ) {
+ return "searchNs$ns";
+ }, $defaultNS ), 0 ) + array( 'searchNs2' => 1, 'searchNs14' => 1 ),
+ 'advanced', array( 2, 14 ),
+ 'Bug 33583: search with no option should honor User search preferences'
+ . 'and have all other namespace disabled'
+ ),
);
}