MediaWiki
REL1_19
|
Upload More...
Public Member Functions | |
dataTestTitleValidation () | |
Test various forms of valid and invalid titles that can be supplied. | |
setUp () | |
tearDown () | |
testMaxUploadSize () | |
test uploading a 100 bytes file with $wgMaxUploadSize = 100 | |
testTitleValidation ($srcFilename, $dstFilename, $code, $msg) | |
First checks the return code of UploadBase::getTitle() and then the actual returned title. | |
testVerifyUpload () | |
Test the upload verification functions. | |
Protected Attributes | |
$upload | |
Private Member Functions | |
createFileOfSize ($size) |
Upload
Definition at line 5 of file UploadTest.php.
UploadTest::createFileOfSize | ( | $ | size | ) | [private] |
Definition at line 92 of file UploadTest.php.
References $size, and wfTempDir().
Referenced by testMaxUploadSize().
Test various forms of valid and invalid titles that can be supplied.
Definition at line 47 of file UploadTest.php.
References UploadBase\FILENAME_TOO_LONG, UploadBase\FILETYPE_MISSING, UploadBase\ILLEGAL_FILENAME, UploadBase\MIN_LENGTH_PARTNAME, and UploadBase\OK.
Definition at line 9 of file UploadTest.php.
References $wgHooks.
Definition at line 18 of file UploadTest.php.
References $wgHooks.
test uploading a 100 bytes file with $wgMaxUploadSize = 100
This method should be abstracted so we can test different settings.
Definition at line 108 of file UploadTest.php.
References $result, $wgFileExtensions, $wgMaxUploadSize, createFileOfSize(), and UploadBase\OK.
UploadTest::testTitleValidation | ( | $ | srcFilename, |
$ | dstFilename, | ||
$ | code, | ||
$ | msg | ||
) |
First checks the return code of UploadBase::getTitle() and then the actual returned title.
dataTestTitleValidation
Definition at line 30 of file UploadTest.php.
References UploadBase\OK.
Test the upload verification functions.
Definition at line 82 of file UploadTest.php.
References $result, and UploadBase\EMPTY_FILE.
UploadTest::$upload [protected] |
Definition at line 6 of file UploadTest.php.