Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -732,24 +732,28 @@ |
733 | 733 | $user = User::createNew( 'WikiSysop' ); |
734 | 734 | $image = wfLocalFile( Title::makeTitle( NS_FILE, 'Foobar.jpg' ) ); |
735 | 735 | $image->recordUpload2( '', 'Upload of some lame file', 'Some lame file', array( |
| 736 | + 'size' => 12345, |
736 | 737 | 'width' => 1941, |
737 | 738 | 'height' => 220, |
738 | 739 | 'bits' => 24, |
739 | 740 | 'media_type' => MEDIATYPE_BITMAP, |
740 | 741 | 'mime' => 'image/jpeg', |
741 | 742 | 'metadata' => serialize( array() ), |
| 743 | + 'sha1' => sha1(''), |
742 | 744 | 'fileExists' => true |
743 | 745 | ), $db->timestamp( '20010115123500' ), $user ); |
744 | 746 | |
745 | 747 | # This image will be blacklisted in [[MediaWiki:Bad image list]] |
746 | 748 | $image = wfLocalFile( Title::makeTitle( NS_FILE, 'Bad.jpg' ) ); |
747 | 749 | $image->recordUpload2( '', 'zomgnotcensored', 'Borderline image', array( |
| 750 | + 'size' => 12345, |
748 | 751 | 'width' => 320, |
749 | 752 | 'height' => 240, |
750 | 753 | 'bits' => 24, |
751 | 754 | 'media_type' => MEDIATYPE_BITMAP, |
752 | 755 | 'mime' => 'image/jpeg', |
753 | 756 | 'metadata' => serialize( array() ), |
| 757 | + 'sha1' => sha1(''), |
754 | 758 | 'fileExists' => true |
755 | 759 | ), $db->timestamp( '20010115123500' ), $user ); |
756 | 760 | } |