MediaWiki  REL1_22
UploadBaseTest Class Reference

Upload More...

Inheritance diagram for UploadBaseTest:
Collaboration diagram for UploadBaseTest:

List of all members.

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)

Detailed Description

Upload

Definition at line 6 of file UploadBaseTest.php.


Member Function Documentation

UploadBaseTest::createFileOfSize ( size) [private]

Definition at line 99 of file UploadBaseTest.php.

References $size, and wfTempDir().

Definition at line 143 of file UploadBaseTest.php.

References array().

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.

References $wgHooks, global, and hooks.

UploadBaseTest::tearDown ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 21 of file UploadBaseTest.php.

References $wgHooks, global, and hooks.

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.


Member Data Documentation

UploadTestHandler UploadBaseTest::$upload [protected]

*

Definition at line 8 of file UploadBaseTest.php.


The documentation for this class was generated from the following file: