|
MediaWiki
REL1_23
|
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 () | |
| 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 98 of file UploadBaseTest.php.
References $size, and wfTempDir().
| static UploadBaseTest::provideCheckSvgScriptCallback | ( | ) | [static] |
Definition at line 142 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 52 of file UploadBaseTest.php.
| UploadBaseTest::setUp | ( | ) | [protected] |
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 136 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 113 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 35 of file UploadBaseTest.php.
Test the upload verification functions UploadBase::verifyUpload.
Definition at line 88 of file UploadBaseTest.php.
UploadTestHandler UploadBaseTest::$upload [protected] |
*
Definition at line 8 of file UploadBaseTest.php.