Mass conversion of $wgContLang to service
[lhc/web/wiklou.git] / tests / phpunit / includes / EditPageTest.php
index 216d92c..587f2c4 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use MediaWiki\MediaWikiServices;
+
 /**
  * @group Editing
  *
@@ -14,6 +16,9 @@ class EditPageTest extends MediaWikiLangTestCase {
        protected function setUp() {
                parent::setUp();
 
+               $contLang = MediaWikiServices::getInstance()->getContentLanguage();
+               $this->setContentLang( $contLang );
+
                $this->setMwGlobals( [
                        'wgExtraNamespaces' => [
                                12312 => 'Dummy',