dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce preference filters
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
specials
/
SpecialPreferencesTest.php
diff --git
a/tests/phpunit/includes/specials/SpecialPreferencesTest.php
b/tests/phpunit/includes/specials/SpecialPreferencesTest.php
index
bdfbb62
..
cd6cd3b
100644
(file)
--- a/
tests/phpunit/includes/specials/SpecialPreferencesTest.php
+++ b/
tests/phpunit/includes/specials/SpecialPreferencesTest.php
@@
-43,6
+43,10
@@
class SpecialPreferencesTest extends MediaWikiTestCase {
]
) );
+ # Needs to return something
+ $user->method( 'getOptions' )
+ ->willReturn( [] );
+
# Forge a request to call the special page
$context = new RequestContext();
$context->setRequest( new FauxRequest() );