dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0af7d96
)
Insert an image table row for the test image
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 20 Apr 2005 02:27:59 +0000
(
02:27
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 20 Apr 2005 02:27:59 +0000
(
02:27
+0000)
maintenance/parserTests.php
patch
|
blob
|
history
diff --git
a/maintenance/parserTests.php
b/maintenance/parserTests.php
index
5f4e6a7
..
1c68578
100644
(file)
--- 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;
}
}