Hard-deprecate authentication-related hooks deprecated by AuthManager
[lhc/web/wiklou.git] / tests / phpunit / includes / auth / LegacyHookPreAuthenticationProviderTest.php
index 38ccb8a..4b89d25 100644 (file)
@@ -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" );
        }