Inheritance: extends MediaWikiTestCase
Example #1
0
 public function setUp()
 {
     global $wgLang, $wgLanguageCode;
     self::$oldLang = $wgLang;
     $wgLanguageCode = 'en';
     $wgLang = Language::factory($wgLanguageCode);
 }
Example #2
0
 public function setUp()
 {
     global $wgLang, $wgContLang, $wgLanguageCode;
     self::$oldLang = $wgLang;
     self::$oldContLang = $wgContLang;
     self::$oldNamespaces = $wgContLang->getNamespaces();
     self::$oldLanguageCode = $wgLanguageCode;
     $wgLanguageCode = 'en';
     $wgContLang = $wgLang = Language::factory($wgLanguageCode);
     // Hardcode namespaces during test runs,
     // so that html output based on existing namespaces
     // can be properly evaluated.
     $wgContLang->setNamespaces(array(-2 => 'Media', -1 => 'Special', 0 => '', 1 => 'Talk', 2 => 'User', 3 => 'User_talk', 4 => 'MyWiki', 5 => 'MyWiki_Talk', 6 => 'File', 7 => 'File_talk', 8 => 'MediaWiki', 9 => 'MediaWiki_talk', 10 => 'Template', 11 => 'Template_talk', 100 => 'Custom', 101 => 'Custom_talk'));
 }