Manual:Hooks/ParserTestTables
![]() | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.36.0. |
ParserTestTables | |
---|---|
Available from version 1.10.0 alter the list of tables to duplicate when parser tests are run. Use when page save hooks require the presence of custom tables to ensure that tests continue to run properly. | |
Define function: | public static function onParserTestTables( array &$tables ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ParserTestTables": "MyExtensionHooks::onParserTestTables"
}
}
|
Called from: | File(s): ../tests/parser/ParserTestRunner.php |
Interface: | ParserTestTablesHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ParserTestTables extensions.
Details[edit]
&$tables
: array of table names