parent::setUp();
$this->setMwGlobals( [
- 'wgLang' => Language::factory( 'en' ),
'wgForceUIMsgAsContentMsg' => [],
] );
+ $this->setUserLang( 'en' );
}
/**
* @covers Message::inContentLanguage
*/
public function testInContentLanguage() {
- $this->setMwGlobals( 'wgLang', Language::factory( 'fr' ) );
+ $this->setUserLang( 'fr' );
// NOTE: make sure internal caching of the message text is reset appropriately
$msg = wfMessage( 'mainpage' );
*/
public function testInContentLanguageOverride() {
$this->setMwGlobals( [
- 'wgLang' => Language::factory( 'fr' ),
'wgForceUIMsgAsContentMsg' => [ 'mainpage' ],
] );
+ $this->setUserLang( 'fr' );
// NOTE: make sure internal caching of the message text is reset appropriately.
// NOTE: wgForceUIMsgAsContentMsg forces the messages *current* language to be used.