Parser tests need to create a temporary protected_titles table to avoid errors.
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 16 Dec 2007 18:23:20 +0000 (18:23 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 16 Dec 2007 18:23:20 +0000 (18:23 +0000)
maintenance/parserTests.inc

index 0677179..10e4689 100644 (file)
@@ -425,16 +425,13 @@ class ParserTest {
         * Some of these probably aren't necessary.
         */
        private function listTables() {
-               $tables = array('user', 'page', 'page_restrictions', 'revision', 'text',
-                       'pagelinks', 'imagelinks', 'categorylinks',
-                       'templatelinks', 'externallinks', 'langlinks',
-                       'site_stats', 'hitcounter',
-                       'ipblocks', 'image', 'oldimage',
-                       'recentchanges',
-                       'watchlist', 'math', 'searchindex',
-                       'interwiki', 'querycache',
-                       'objectcache', 'job', 'redirect',
-                       'querycachetwo', 'archive', 'user_groups'
+               $tables = array('user', 'page', 'page_restrictions',
+                       'protected_titles', 'revision', 'text', 'pagelinks', 'imagelinks',
+                       'categorylinks', 'templatelinks', 'externallinks', 'langlinks',
+                       'site_stats', 'hitcounter',     'ipblocks', 'image', 'oldimage',
+                       'recentchanges', 'watchlist', 'math', 'searchindex', 'interwiki',
+                       'querycache', 'objectcache', 'job', 'redirect', 'querycachetwo',
+                       'archive', 'user_groups'
                );
                
                // Allow extensions to add to the list of tables to duplicate;