Merge "Setting $wgContLang without changing $wgLanguageCode accordingly is a very...
authorSiebrand <siebrand@wikimedia.org>
Mon, 22 Oct 2012 12:06:10 +0000 (12:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 22 Oct 2012 12:06:10 +0000 (12:06 +0000)
tests/phpunit/includes/BlockTest.php

index 5ac05ba..29931c8 100644 (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() {