<?php
+use MediaWiki\MediaWikiServices;
+
/**
* @covers Preprocessor
*
protected $mPreprocessors;
protected static $classNames = [
- 'Preprocessor_DOM',
- 'Preprocessor_Hash'
+ Preprocessor_DOM::class,
+ Preprocessor_Hash::class
];
protected function setUp() {
- global $wgContLang;
parent::setUp();
- $this->mOptions = ParserOptions::newFromUserAndLang( new User, $wgContLang );
+ $this->mOptions = ParserOptions::newFromUserAndLang( new User,
+ MediaWikiServices::getInstance()->getContentLanguage() );
$this->mPreprocessors = [];
foreach ( self::$classNames as $className ) {