X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FExtraParserTest.php;h=5dd4f7a07c019e30a49c38130fb24c720b30b11c;hb=8b18ae7b5;hp=78e71ea46796442d559456d0c6f4fdbbf6d29ccd;hpb=4b73a8b6fbb6da651af850a7d667e6e8d59e6fce;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/ExtraParserTest.php b/tests/phpunit/includes/ExtraParserTest.php index 78e71ea467..5dd4f7a07c 100644 --- a/tests/phpunit/includes/ExtraParserTest.php +++ b/tests/phpunit/includes/ExtraParserTest.php @@ -18,12 +18,12 @@ class ExtraParserTest extends MediaWikiTestCase { $contLang = Language::factory( 'en' ); $this->setMwGlobals( [ 'wgShowDBErrorBacktrace' => true, - 'wgLanguageCode' => 'en', - 'wgContLang' => $contLang, - 'wgLang' => Language::factory( 'en' ), 'wgCleanSignatures' => true, ] ); + $this->setUserLang( 'en' ); + $this->setContentLang( $contLang ); + // FIXME: This test should pass without setting global content language $this->options = ParserOptions::newFromUserAndLang( new User, $contLang ); $this->options->setTemplateCallback( [ __CLASS__, 'statelessFetchTemplate' ] ); $this->parser = new Parser;