Initialize a group so the parser test can run
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 18 Jan 2005 03:34:30 +0000 (03:34 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 18 Jan 2005 03:34:30 +0000 (03:34 +0000)
maintenance/parserTests.php

index 6f6184f..fd2293f 100644 (file)
@@ -319,7 +319,7 @@ class ParserTest {
                        'recentchanges',
                        'watchlist', 'math', 'searchindex',
                        'interwiki', 'querycache',
-                       'objectcache'
+                       'objectcache', 'group'
                );
        }
        
@@ -396,7 +396,13 @@ class ParserTest {
                                       'iw_local'  => 1 ),
                                ) );
 
-
+                       # Hack: initialize a group
+                       $db->insert( 'group', array(
+                               'group_id' => 1,
+                               'group_name' => 'Anonymous',
+                               'group_description' => 'Anonymous users',
+                               'group_rights' => 'read' ) );
+                       
                        $setupDB = true;
                }
        }