Merge "Fix TitlePermissionTest failures due to test leakage"
[lhc/web/wiklou.git] / tests / phpunit / includes / parser / MagicVariableTest.php
index 9f5e386..02a4a25 100644 (file)
@@ -9,11 +9,10 @@
  * @author Antoine Musso
  * @copyright Copyright © 2011, Antoine Musso
  * @file
- *
- * @group Database
  */
 
 /**
+ * @group Database
  * @covers Parser::getVariableValue
  */
 class MagicVariableTest extends MediaWikiTestCase {
@@ -39,10 +38,7 @@ class MagicVariableTest extends MediaWikiTestCase {
                parent::setUp();
 
                $contLang = Language::factory( 'en' );
-               $this->setMwGlobals( [
-                       'wgLanguageCode' => 'en',
-                       'wgContLang' => $contLang,
-               ] );
+               $this->setContentLang( $contLang );
 
                $this->testParser = new Parser();
                $this->testParser->Options( ParserOptions::newFromUserAndLang( new User, $contLang ) );