mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-24 00:06:21 +00:00
Remove 'UnitTestList' hook
No longer needed now that extension unittests are autodiscovered. Bug: T142120 Bug: T142121 Change-Id: I075b7f6b5e11ead988b0baba5d85745dbb9ac480
This commit is contained in:
parent
aa216dcf68
commit
adf6a2edc8
|
@ -50,15 +50,6 @@ class ParserFunctionsHooks {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $files array
|
||||
* @return bool
|
||||
*/
|
||||
public static function onUnitTestsList( &$files ) {
|
||||
$files[] = __DIR__ . '/tests/ExpressionTest.php';
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function onScribuntoExternalLibraries( $engine, array &$extraLibraries ) {
|
||||
if ( $engine === 'lua' ) {
|
||||
$extraLibraries['mw.ext.ParserFunctions'] = 'Scribunto_LuaParserFunctionsLibrary';
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
"ParserFirstCallInit": [
|
||||
"ParserFunctionsHooks::onParserFirstCallInit"
|
||||
],
|
||||
"UnitTestsList": [
|
||||
"ParserFunctionsHooks::onUnitTestsList"
|
||||
],
|
||||
"ScribuntoExternalLibraries": [
|
||||
"ParserFunctionsHooks::onScribuntoExternalLibraries"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue