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
Replace $wgUser with RequestContext::getUser in User::getBlockedStatus
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
auth
/
CheckBlocksSecondaryAuthenticationProviderTest.php
diff --git
a/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php
b/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php
index
81cdc9d
..
e8b61c5
100644
(file)
--- a/
tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php
+++ b/
tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php
@@
-165,6
+165,7
@@
class CheckBlocksSecondaryAuthenticationProviderTest extends \MediaWikiTestCase
$user->saveSettings();
}
$this->setMwGlobals( [ 'wgUser' => $user ] );
+ \RequestContext::getMain()->setUser( $user );
$newuser = \User::newFromName( 'RandomUser' );
$provider = new CheckBlocksSecondaryAuthenticationProvider(