From: umherirrender Date: Sat, 10 Nov 2012 18:50:13 +0000 (+0100) Subject: Set wgLanguageCode/wgContLang for backup_PageTest.php X-Git-Tag: 1.31.0-rc.0~21662^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=9e9fb36ca229efc88bd81180536baa8661c17758;p=lhc%2Fweb%2Fwiklou.git Set wgLanguageCode/wgContLang for backup_PageTest.php There is namespace handling, which fails on $wgLanguageCode = 'de'; Change-Id: I99a4a1837e5db5eb22cb879898da3ac37439264d --- diff --git a/tests/phpunit/maintenance/backup_PageTest.php b/tests/phpunit/maintenance/backup_PageTest.php index 149845e3c7..227e04a787 100644 --- a/tests/phpunit/maintenance/backup_PageTest.php +++ b/tests/phpunit/maintenance/backup_PageTest.php @@ -79,6 +79,11 @@ class BackupDumperPageTest extends DumpTestCase { protected function setUp() { parent::setUp(); + $this->setMwGlobals( array( + 'wgLanguageCode' => 'en', + 'wgContLang' => Language::factory( 'en' ), + )); + // Since we will restrict dumping by page ranges (to allow // working tests, even if the db gets prepopulated by a base // class), we have to assert, that the page id are consecutively