From 6c289b9fba141614a9b26a9656ee2b3398c96dc3 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 1 Dec 2011 00:40:56 +0000 Subject: [PATCH] Comment out brokwn Xml::dateMenu() tests Failing because it's december (ie the test is wrong) --- tests/phpunit/includes/XmlTest.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/includes/XmlTest.php b/tests/phpunit/includes/XmlTest.php index b55cb91ee7..dbac939e17 100644 --- a/tests/phpunit/includes/XmlTest.php +++ b/tests/phpunit/includes/XmlTest.php @@ -5,12 +5,12 @@ class XmlTest extends MediaWikiTestCase { public function setUp() { global $wgLang, $wgLanguageCode; - + self::$oldLang = $wgLang; $wgLanguageCode = 'en'; $wgLang = Language::factory( $wgLanguageCode ); } - + public function tearDown() { global $wgLang, $wgLanguageCode; $wgLang = self::$oldLang; @@ -138,11 +138,14 @@ class XmlTest extends MediaWikiTestCase { Xml::dateMenu( '' , $curMonth ), "Date menu year is the current one when not specified" ); - $this->assertEquals( + + // @todo FIXME: next month can be in the next year + // test failing because it is now december + /*$this->assertEquals( Xml::dateMenu( $prevYear, $nextMonth ), Xml::dateMenu( '', $nextMonth ), "Date menu next month is 11 months ago" - ); + ); */ # @todo FIXME: Please note there is no year there! $this->assertEquals( @@ -159,7 +162,7 @@ class XmlTest extends MediaWikiTestCase { '' . "\n" . '' . "\n" . '', - Xml::dateMenu( '', ''), + Xml::dateMenu( '', '' ), "Date menu with neither year or month" ); } -- 2.20.1