From: Kunal Mehta Date: Fri, 9 Feb 2018 20:08:05 +0000 (-0800) Subject: editTests: Use the correct list of parser test files X-Git-Tag: 1.31.0-rc.0~644^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=1ec5bb6dbf28bb1f3414188aaa69e2b0a795abdb;hp=6c4d32e3940ddbf310a29cb9162984f588691790 editTests: Use the correct list of parser test files $wgParserTestFiles is deprecated, so this wasn't running the core parser tests. Using ParserTestRunner::getParserTestFiles() includes everything, including autodiscovered extension parser tests. Change-Id: Ie3b02565c184e8e06931ab52a39ca8ae0877aab9 --- diff --git a/tests/parser/editTests.php b/tests/parser/editTests.php index cb430f280d..3e18370a41 100644 --- a/tests/parser/editTests.php +++ b/tests/parser/editTests.php @@ -62,10 +62,9 @@ class ParserEditTests extends Maintenance { } protected function setupFileData() { - global $wgParserTestFiles; $this->testFiles = []; $this->testCount = 0; - foreach ( $wgParserTestFiles as $file ) { + foreach ( ParserTestRunner::getParserTestFiles() as $file ) { $fileInfo = TestFileReader::read( $file ); $this->testFiles[$file] = $fileInfo; $this->testCount += count( $fileInfo['tests'] );