MediaWiki  REL1_19
UploadTest Class Reference

Upload More...

Inheritance diagram for UploadTest:
Collaboration diagram for UploadTest:

List of all members.

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)

Detailed Description

Upload

Definition at line 5 of file UploadTest.php.


Member Function Documentation

UploadTest::createFileOfSize ( size) [private]

Definition at line 92 of file UploadTest.php.

References $size, and wfTempDir().

Referenced by testMaxUploadSize().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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.


Member Data Documentation

UploadTest::$upload [protected]

Definition at line 6 of file UploadTest.php.


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