Comment out brokwn Xml::dateMenu() tests
authorSam Reed <reedy@users.mediawiki.org>
Thu, 1 Dec 2011 00:40:56 +0000 (00:40 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 1 Dec 2011 00:40:56 +0000 (00:40 +0000)
Failing because it's december (ie the test is wrong)

tests/phpunit/includes/XmlTest.php

index b55cb91..dbac939 100644 (file)
@@ -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 {
 '<option value="10">October</option>' . "\n" .
 '<option value="11">November</option>' . "\n" .
 '<option value="12">December</option></select>',
-                       Xml::dateMenu( '', ''),
+                       Xml::dateMenu( '', '' ),
                        "Date menu with neither year or month"
                );
        }