Setting $wgContLang without changing $wgLanguageCode accordingly is a very bad idea.

This caused about 200 exceptions "MWException: Error in MediaWikiLangTestCase::setUp(): $wgLanguageCode ('fr') is different from $wgContLang->getCode() (en)" on my installation.

Change-Id: I2987db68e22b27d8d36cdae118356fd7612e56a4
This commit is contained in:
Alexandre Emsenhuber 2012-10-20 18:15:18 +02:00
parent 4728e61383
commit 2b0edc83e9

View file

@ -13,7 +13,10 @@ class BlockTest extends MediaWikiLangTestCase {
protected function setUp() {
parent::setUp();
$this->setMwGlobals( 'wgContLang', Language::factory( 'en' ) );
$this->setMwGlobals( array(
'wgLanguageCode' => 'en',
'wgContLang' => Language::factory( 'en' )
) );
}
function addDBData() {