editTests: Use the correct list of parser test files
[lhc/web/wiklou.git] / tests / parser / editTests.php
index cb430f2..3e18370 100644 (file)
@@ -62,10 +62,9 @@ class ParserEditTests extends Maintenance {
        }
 
        protected function setupFileData() {
        }
 
        protected function setupFileData() {
-               global $wgParserTestFiles;
                $this->testFiles = [];
                $this->testCount = 0;
                $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'] );
                        $fileInfo = TestFileReader::read( $file );
                        $this->testFiles[$file] = $fileInfo;
                        $this->testCount += count( $fileInfo['tests'] );