From: Platonides Date: Thu, 12 Aug 2010 12:00:58 +0000 (+0000) Subject: size and sha1 cannot be null in the database layout. X-Git-Tag: 1.31.0-rc.0~35536 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=ed4577377fca0eb1c6eae742bf24b2356b2f2cfc;p=lhc%2Fweb%2Fwiklou.git size and sha1 cannot be null in the database layout. Fixes sqlite parsertests after r70917 --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 15c23f9fee..0d9a99ae5b 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -732,24 +732,28 @@ class ParserTest { $user = User::createNew( 'WikiSysop' ); $image = wfLocalFile( Title::makeTitle( NS_FILE, 'Foobar.jpg' ) ); $image->recordUpload2( '', 'Upload of some lame file', 'Some lame file', array( + 'size' => 12345, 'width' => 1941, 'height' => 220, 'bits' => 24, 'media_type' => MEDIATYPE_BITMAP, 'mime' => 'image/jpeg', 'metadata' => serialize( array() ), + 'sha1' => sha1(''), 'fileExists' => true ), $db->timestamp( '20010115123500' ), $user ); # This image will be blacklisted in [[MediaWiki:Bad image list]] $image = wfLocalFile( Title::makeTitle( NS_FILE, 'Bad.jpg' ) ); $image->recordUpload2( '', 'zomgnotcensored', 'Borderline image', array( + 'size' => 12345, 'width' => 320, 'height' => 240, 'bits' => 24, 'media_type' => MEDIATYPE_BITMAP, 'mime' => 'image/jpeg', 'metadata' => serialize( array() ), + 'sha1' => sha1(''), 'fileExists' => true ), $db->timestamp( '20010115123500' ), $user ); }