From 0989a2bcbce5e9918a6c1719e90ed890a05ba514 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 6 Jul 2011 17:58:29 +0000 Subject: [PATCH] Call parent::setUp() and allow it to do lang setup stuff --- tests/phpunit/includes/GlobalFunctions/GlobalTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php index 0ded96f172..383035611a 100644 --- a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php +++ b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php @@ -3,13 +3,12 @@ class GlobalTest extends MediaWikiTestCase { function setUp() { global $wgReadOnlyFile, $wgContLang, $wgLang, $wgUrlProtocols, $wgLanguageCode; + parent::setUp(); $this->originals['wgReadOnlyFile'] = $wgReadOnlyFile; $this->originals['wgUrlProtocols'] = $wgUrlProtocols; $wgReadOnlyFile = tempnam( wfTempDir(), "mwtest_readonly" ); $wgUrlProtocols[] = 'file://'; unlink( $wgReadOnlyFile ); - $wgLanguageCode = 'en'; - $wgContLang = $wgLang = Language::factory( 'en' ); } function tearDown() { -- 2.20.1