From: Sam Reed Date: Thu, 1 Dec 2011 00:40:56 +0000 (+0000) Subject: Comment out brokwn Xml::dateMenu() tests X-Git-Tag: 1.31.0-rc.0~26202 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=6c289b9fba141614a9b26a9656ee2b3398c96dc3;p=lhc%2Fweb%2Fwiklou.git Comment out brokwn Xml::dateMenu() tests Failing because it's december (ie the test is wrong) --- 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" ); }