From 1ec5bb6dbf28bb1f3414188aaa69e2b0a795abdb Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 9 Feb 2018 12:08:05 -0800 Subject: [PATCH] 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 --- tests/parser/editTests.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'] ); -- 2.20.1