<?php
+use MediaWiki\MediaWikiServices;
+
/**
* @covers Preprocessor
*
];
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 ) {