r99225 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99224‎ | r99225 | r99226 >
Date:18:32, 7 October 2011
Author:btongminh
Status:ok
Tags:
Comment:
Follow-up r99224, fix unit tests.
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/upload/UploadTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/upload/UploadTest.php
@@ -68,10 +68,10 @@
6969 array( '.jpg', null, UploadBase::MIN_LENGTH_PARTNAME,
7070 'upload title without basename' ),
7171 /* A title that is longer than 255 bytes */
72 - array( str_repeat( 'a', 255 ) . '.jpg', null, UploadBase::ILLEGAL_FILENAME,
 72+ array( str_repeat( 'a', 255 ) . '.jpg', null, UploadBase::FILENAME_TOO_LONG,
7373 'upload title longer than 255 bytes' ),
7474 /* A title that is longer than 240 bytes */
75 - array( str_repeat( 'a', 240 ) . '.jpg', null, UploadBase::ILLEGAL_FILENAME,
 75+ array( str_repeat( 'a', 240 ) . '.jpg', null, UploadBase::FILENAME_TOO_LONG,
7676 'upload title longer than 240 bytes' ),
7777 );
7878 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99224Follow-up r98430, use dedicated error message for filename too long error. Ad...btongminh18:20, 7 October 2011

Status & tagging log