MediaWiki  REL1_24
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 ()
 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 98 of file UploadBaseTest.php.

References $size, and wfTempDir().

Definition at line 142 of file UploadBaseTest.php.

References array().

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.

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 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.


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: