From 6fdb0663b8be6b4e84c6f16b55e31eb3a3fb5103 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 18 May 2006 07:36:41 +0000 Subject: [PATCH] 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. --- RELEASE-NOTES | 4 +++- maintenance/parserTests.inc | 3 +++ maintenance/parserTests.txt | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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 -- 2.20.1