Set wgLanguageCode/wgContLang for backup_PageTest.php
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 10 Nov 2012 18:50:13 +0000 (19:50 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 10 Nov 2012 18:50:13 +0000 (19:50 +0100)
There is namespace handling, which fails on $wgLanguageCode = 'de';

Change-Id: I99a4a1837e5db5eb22cb879898da3ac37439264d

tests/phpunit/maintenance/backup_PageTest.php

index 149845e..227e04a 100644 (file)
@@ -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