From 5d3c41667226a681a31e6e1536c99a0d6bf17528 Mon Sep 17 00:00:00 2001 From: DannyS712 Date: Fri, 30 Jul 2021 03:59:48 +0000 Subject: [PATCH] Remove ParserTestTables hook handler. This hook is no longer called in MW 1.36+ by core, and this extension already requires MW 1.37+ See I5124789fac333a664b73b4b4a1e801ecc0a618ca Change-Id: I420c2a231cc1c7d6a350a1f04f7c7d4fd942b377 --- extension.json | 1 - includes/EchoHooks.php | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/extension.json b/extension.json index b6681a7ae..8e51cdba1 100644 --- a/extension.json +++ b/extension.json @@ -477,7 +477,6 @@ "UserSaveOptions": "EchoHooks::onUserSaveOptions", "UserGetDefaultOptions": "EchoHooks::onUserGetDefaultOptions", "UserClearNewTalkNotification": "EchoHooks::onUserClearNewTalkNotification", - "ParserTestTables": "EchoHooks::onParserTestTables", "EmailUserComplete": "EchoHooks::onEmailUserComplete", "LoginFormValidErrorMessages": "EchoHooks::onLoginFormValidErrorMessages", "OutputPageCheckLastModified": "EchoHooks::onOutputPageCheckLastModified", diff --git a/includes/EchoHooks.php b/includes/EchoHooks.php index 82bc59630..f1d117a4d 100644 --- a/includes/EchoHooks.php +++ b/includes/EchoHooks.php @@ -1374,17 +1374,6 @@ class EchoHooks implements RecentChange_saveHook { } } - /** - * Handler for ParserTestTables hook, makes sure that Echo's tables are present during tests - * @see https://www.mediawiki.org/wiki/Manual:Hooks/ParserTestTables - * @param array &$tables List of DB tables to be used for parser tests - */ - public static function onParserTestTables( &$tables ) { - $tables[] = 'echo_event'; - $tables[] = 'echo_notification'; - $tables[] = 'echo_email_batch'; - } - /** * Handler for EmailUserComplete hook. * @see https://www.mediawiki.org/wiki/Manual:Hooks/EmailUserComplete