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:
parent
4728e61383
commit
2b0edc83e9
1 changed files with 4 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue