From: Brion Vibber Date: Wed, 20 Apr 2005 02:27:59 +0000 (+0000) Subject: Insert an image table row for the test image X-Git-Tag: 1.5.0alpha1~235 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=4fa65580bc3745638a7a12b31e69917b8c364ca1;p=lhc%2Fweb%2Fwiklou.git Insert an image table row for the test image --- diff --git a/maintenance/parserTests.php b/maintenance/parserTests.php index 5f4e6a7a1d..1c68578ec0 100644 --- a/maintenance/parserTests.php +++ b/maintenance/parserTests.php @@ -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; } }