Merge "editTests: Use the correct list of parser test files"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 10 Feb 2018 00:30:08 +0000 (00:30 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 10 Feb 2018 00:30:08 +0000 (00:30 +0000)
tests/parser/editTests.php

index cb430f2..3e18370 100644 (file)
@@ -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'] );