Initialise wgContLang and $wgLang.
authorPlatonides <platonides@users.mediawiki.org>
Wed, 8 Sep 2010 20:38:20 +0000 (20:38 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 8 Sep 2010 20:38:20 +0000 (20:38 +0000)
Follow up r72566.

maintenance/tests/phpunit/bootstrap.php
maintenance/tests/phpunit/includes/GlobalTest.php

index 650fe4c..60c117c 100644 (file)
@@ -73,4 +73,4 @@ abstract class MediaWikiTestSetup extends PHPUnit_Framework_TestCase {
                        return null;
                }
        }
-}
\ No newline at end of file
+}
index 8dc6660..75d229b 100644 (file)
@@ -2,10 +2,11 @@
 
 class GlobalTest extends PHPUnit_Framework_TestCase {
        function setUp() {
-               global $wgReadOnlyFile;
+               global $wgReadOnlyFile, $wgContLang, $wgLang;
                $this->originals['wgReadOnlyFile'] = $wgReadOnlyFile;
                $wgReadOnlyFile = tempnam( wfTempDir(), "mwtest_readonly" );
                unlink( $wgReadOnlyFile );
+               $wgContLang = $wgLang = Language::factory( 'en' );
        }
        
        function tearDown() {