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
Hard-deprecate authentication-related hooks deprecated by AuthManager
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
auth
/
LegacyHookPreAuthenticationProviderTest.php
diff --git
a/tests/phpunit/includes/auth/LegacyHookPreAuthenticationProviderTest.php
b/tests/phpunit/includes/auth/LegacyHookPreAuthenticationProviderTest.php
index
38ccb8a
..
4b89d25
100644
(file)
--- a/
tests/phpunit/includes/auth/LegacyHookPreAuthenticationProviderTest.php
+++ b/
tests/phpunit/includes/auth/LegacyHookPreAuthenticationProviderTest.php
@@
-44,6
+44,8
@@
class LegacyHookPreAuthenticationProviderTest extends \MediaWikiTestCase {
$this->mergeMwGlobalArrayValue( 'wgHooks', [
$hook => [ $mock ],
] );
+ $mockClass = get_class( $mock );
+ $this->hideDeprecated( "$hook hook (used in $mockClass::on$hook)" );
return $mock->expects( $expect )->method( "on$hook" );
}