diff --git a/tests/phpunit/integration/AbuseFilterExtensionJsonTest.php b/tests/phpunit/integration/AbuseFilterExtensionJsonTest.php index d2f80fb5f..f0f44d6d5 100644 --- a/tests/phpunit/integration/AbuseFilterExtensionJsonTest.php +++ b/tests/phpunit/integration/AbuseFilterExtensionJsonTest.php @@ -16,11 +16,12 @@ class AbuseFilterExtensionJsonTest extends ExtensionJsonTestBase { protected string $extensionJsonPath = __DIR__ . '/../../../extension.json'; public function provideHookHandlerNames(): iterable { - foreach ( $this->getExtensionJson()['HookHandlers'] ?? [] as $hookHandlerName => $specification ) { - if ( $hookHandlerName === 'UserMerge' && !ExtensionRegistry::getInstance()->isLoaded( 'UserMerge' ) ) { + $extHookHandlers = [ 'CheckUser', 'ConfirmEdit', 'Echo', 'UserMerge' ]; + foreach ( $this->getExtensionJson()['HookHandlers'] ?? [] as $name => $specification ) { + if ( in_array( $name, $extHookHandlers ) && !ExtensionRegistry::getInstance()->isLoaded( $name ) ) { continue; } - yield [ $hookHandlerName ]; + yield [ $name ]; } } }