mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-27 17:01:07 +00:00
Remove 'UnitTestList' hook
No longer needed now that extension unittests are autodiscovered. Bug: T142120 Bug: T142121 Change-Id: I08e3fdf24481a0404c2bf9822d5d02b815cb2e76
This commit is contained in:
parent
fda31a802f
commit
b8d6ba165b
|
@ -356,19 +356,6 @@ class MathHooks {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Links to the unit test files for the test cases.
|
||||
*
|
||||
* @param string $files
|
||||
* @return boolean (true)
|
||||
*/
|
||||
static function onRegisterUnitTests( &$files ) {
|
||||
$testDir = __DIR__ . '/tests/';
|
||||
$files = array_merge( $files, glob( "$testDir/*Test.php" ) );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Parser $parser
|
||||
* @param $text
|
||||
|
|
|
@ -54,9 +54,6 @@
|
|||
"ParserTestTables": [
|
||||
"MathHooks::onParserTestTables"
|
||||
],
|
||||
"UnitTestsList": [
|
||||
"MathHooks::onRegisterUnitTests"
|
||||
],
|
||||
"PageRenderingHash": [
|
||||
"MathHooks::onPageRenderingHash"
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue