Follow-up r99224, fix unit tests.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 7 Oct 2011 18:32:08 +0000 (18:32 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 7 Oct 2011 18:32:08 +0000 (18:32 +0000)
tests/phpunit/includes/upload/UploadTest.php

index d0da034..38d6aee 100644 (file)
@@ -68,10 +68,10 @@ class UploadTest extends MediaWikiTestCase {
                        array( '.jpg', null, UploadBase::MIN_LENGTH_PARTNAME, 
                                'upload title without basename' ),
                        /* A title that is longer than 255 bytes */
-                       array( str_repeat( 'a', 255 ) . '.jpg', null, UploadBase::ILLEGAL_FILENAME
+                       array( str_repeat( 'a', 255 ) . '.jpg', null, UploadBase::FILENAME_TOO_LONG
                                'upload title longer than 255 bytes' ),
                        /* A title that is longer than 240 bytes */
-                       array( str_repeat( 'a', 240 ) . '.jpg', null, UploadBase::ILLEGAL_FILENAME
+                       array( str_repeat( 'a', 240 ) . '.jpg', null, UploadBase::FILENAME_TOO_LONG
                                'upload title longer than 240 bytes' ),
                );
        }