Insert an image table row for the test image
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Apr 2005 02:27:59 +0000 (02:27 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Apr 2005 02:27:59 +0000 (02:27 +0000)
maintenance/parserTests.php

index 5f4e6a7..1c68578 100644 (file)
@@ -410,6 +410,20 @@ class ParserTest {
                                'group_description' => 'Anonymous users',
                                'group_rights' => 'read' ) );
                        
+                       # Hack: Insert an image to work with
+                       $db->insert( 'image', array(
+                               'img_name'        => 'Foobar.jpg',
+                               'img_size'        => 12345,
+                               'img_description' => 'Some lame file',
+                               'img_user'        => 1,
+                               'img_user_text'   => 'WikiSysop',
+                               'img_timestamp'   => $db->timestamp( '20010115123500' ),
+                               'img_width'       => 666,
+                               'img_height'      => 444,
+                               'img_bits'        => 24,
+                               'img_type'        => 2, // 2 == JPEG
+                               ) );
+                       
                        $setupDB = true;
                }
        }