MediaWiki
REL1_22
|
Upload More...
Public Member Functions | |
testCheckSvgScriptCallback ($svg, $wellFormed, $filterMatch, $message) | |
provideCheckSvgScriptCallback | |
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 UploadBase::verifyUpload. | |
Static Public Member Functions | |
static | provideCheckSvgScriptCallback () |
static | provideTestTitleValidation () |
Test various forms of valid and invalid titles that can be supplied. | |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. | |
tearDown () | |
Protected Attributes | |
UploadTestHandler | $upload |
* | |
Private Member Functions | |
createFileOfSize ($size) |
Upload
Definition at line 6 of file UploadBaseTest.php.
UploadBaseTest::createFileOfSize | ( | $ | size | ) | [private] |
Definition at line 99 of file UploadBaseTest.php.
References $size, and wfTempDir().
static UploadBaseTest::provideCheckSvgScriptCallback | ( | ) | [static] |
Definition at line 143 of file UploadBaseTest.php.
References array().
static UploadBaseTest::provideTestTitleValidation | ( | ) | [static] |
Test various forms of valid and invalid titles that can be supplied.
Definition at line 53 of file UploadBaseTest.php.
UploadBaseTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 10 of file UploadBaseTest.php.
UploadBaseTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 21 of file UploadBaseTest.php.
UploadBaseTest::testCheckSvgScriptCallback | ( | $ | svg, |
$ | wellFormed, | ||
$ | filterMatch, | ||
$ | message | ||
) |
provideCheckSvgScriptCallback
Definition at line 137 of file UploadBaseTest.php.
test uploading a 100 bytes file with $wgMaxUploadSize = 100
This method should be abstracted so we can test different settings.
Definition at line 114 of file UploadBaseTest.php.
UploadBaseTest::testTitleValidation | ( | $ | srcFilename, |
$ | dstFilename, | ||
$ | code, | ||
$ | msg | ||
) |
First checks the return code of UploadBase::getTitle() and then the actual returned title.
provideTestTitleValidation UploadBase::getTitle
Definition at line 36 of file UploadBaseTest.php.
Test the upload verification functions UploadBase::verifyUpload.
Definition at line 89 of file UploadBaseTest.php.
UploadTestHandler UploadBaseTest::$upload [protected] |
*
Definition at line 8 of file UploadBaseTest.php.