Fix breakage in parser test suite which caused incorrect reporting of the failure...
authorRob Church <robchurch@users.mediawiki.org>
Thu, 18 May 2006 07:36:41 +0000 (07:36 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Thu, 18 May 2006 07:36:41 +0000 (07:36 +0000)
RELEASE-NOTES
maintenance/parserTests.inc
maintenance/parserTests.txt

index 0c38d49..bb9db08 100644 (file)
@@ -293,7 +293,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   that isn't current
 * Enforce the standard upper limit when accessing page histories
 * (bug 2203) Namespace updates for Thai
-
+* Fix breakage in parser test suite which caused incorrect reporting of the failure of
+  {{NUMBEROFFILES}}. Now initialises the site_stats table with some dumb data. Updated
+  the expected output for {{NUMBEROFARTICLES}} to reflect this.
 
 == Compatibility ==
 
index e16be32..0948eed 100644 (file)
@@ -454,6 +454,9 @@ class ParserTest {
                                'img_major_mime'  => "image",
                                'img_minor_mime'  => "jpeg",
                                ) );
+                               
+                       # Update certain things in site_stats
+                       $db->insert( 'site_stats', array( 'ss_row_id' => 1, 'ss_images' => 1, 'ss_good_articles' => 1 ) );
 
                        $setupDB = true;
                }
index 259e755..ee6e133 100644 (file)
@@ -1612,7 +1612,7 @@ Magic Word: {{NUMBEROFARTICLES}}
 !! input
 {{NUMBEROFARTICLES}}
 !! result
-<p>-1
+<p>1
 </p>
 !! end