From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- tests/phpunit/MediaWikiLangTestCase.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/phpunit/MediaWikiLangTestCase.php (limited to 'tests/phpunit/MediaWikiLangTestCase.php') diff --git a/tests/phpunit/MediaWikiLangTestCase.php b/tests/phpunit/MediaWikiLangTestCase.php new file mode 100644 index 00000000..1cd6a3ba --- /dev/null +++ b/tests/phpunit/MediaWikiLangTestCase.php @@ -0,0 +1,33 @@ +getCode() ) die("nooo!"); + + $wgLanguageCode = 'en'; # For mainpage to be 'Main Page' + + $wgContLang = $wgLang = Language::factory( $wgLanguageCode ); + MessageCache::singleton()->disable(); + } + + public function tearDown() { + global $wgContLang, $wgLang, $wgLanguageCode; + $wgLang = self::$oldLang; + + $wgContLang = self::$oldContLang; + $wgLanguageCode = $wgContLang->getCode(); + self::$oldContLang = self::$oldLang = null; + } + +} -- cgit v1.2.3-54-g00ecf