From: Rob Church Date: Thu, 18 May 2006 07:36:41 +0000 (+0000) Subject: Fix breakage in parser test suite which caused incorrect reporting of the failure... X-Git-Tag: 1.31.0-rc.0~57094 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=6fdb0663b8be6b4e84c6f16b55e31eb3a3fb5103;p=lhc%2Fweb%2Fwiklou.git 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. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0c38d49ea8..bb9db08a56 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index e16be32d0a..0948eed0fb 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -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; } diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 259e75585f..ee6e133785 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1612,7 +1612,7 @@ Magic Word: {{NUMBEROFARTICLES}} !! input {{NUMBEROFARTICLES}} !! result -

-1 +

1

!! end