MediaWiki
REL1_24
|
Broken Upload Database More...
Public Member Functions | |
testAsyncUpload ($data) | |
testClearQueue | |
testAsyncUploadWarning ($data) | |
testClearQueue | |
testClearQueue () | |
Ensure that the job queue is empty before continuing. | |
testLeaveMessage () | |
testSetupUrlDownload ($data) | |
testClearQueue | |
testSyncDownload ($data) | |
testClearQueue | |
Protected Member Functions | |
deleteFile ($name) | |
doApiRequest (array $params, array $unused=null, $appendModule=false, User $user=null) | |
Does the API request and returns the result. | |
setUp () | |
Private Member Functions | |
doAsyncUpload ($token, $ignoreWarnings=false, $leaveMessage=false) | |
Helper function to perform an async upload, execute the job and fetch the status. |
UploadFromUrlTest::deleteFile | ( | $ | name | ) | [protected] |
Definition at line 313 of file UploadFromUrlTest.php.
References $file, $name, $t, array(), FileDeleteForm\doDelete(), WikiPage\factory(), Title\newFromText(), and wfFindFile().
Referenced by setUp(), testAsyncUpload(), testAsyncUploadWarning(), testLeaveMessage(), and testSyncDownload().
UploadFromUrlTest::doApiRequest | ( | array $ | params, |
array $ | session = null , |
||
$ | appendModule = false , |
||
User $ | user = null |
||
) | [protected] |
Does the API request and returns the result.
The returned value is an array containing
array | $params | |
array | null | $session | |
bool | $appendModule | |
User | null | $user |
Reimplemented from ApiTestCase.
Definition at line 26 of file UploadFromUrlTest.php.
References array(), and wfSetupSession().
Referenced by doAsyncUpload(), testAsyncUploadWarning(), testLeaveMessage(), testSetupUrlDownload(), and testSyncDownload().
UploadFromUrlTest::doAsyncUpload | ( | $ | token, |
$ | ignoreWarnings = false , |
||
$ | leaveMessage = false |
||
) | [private] |
Helper function to perform an async upload, execute the job and fetch the status.
string | $token | |
bool | $ignoreWarnings | |
bool | $leaveMessage |
Definition at line 278 of file UploadFromUrlTest.php.
References $job, $params, array(), doApiRequest(), and JobQueueGroup\singleton().
Referenced by testAsyncUpload(), and testAsyncUploadWarning().
UploadFromUrlTest::setUp | ( | ) | [protected] |
Reimplemented from ApiTestCase.
Definition at line 11 of file UploadFromUrlTest.php.
References array(), deleteFile(), MediaWikiTestCase\setMwGlobals(), wfLocalFile(), and wfSetupSession().
UploadFromUrlTest::testAsyncUpload | ( | $ | data | ) |
testClearQueue
Definition at line 128 of file UploadFromUrlTest.php.
References deleteFile(), doAsyncUpload(), user, and wfLocalFile().
testClearQueue
Definition at line 146 of file UploadFromUrlTest.php.
References array(), deleteFile(), doApiRequest(), doAsyncUpload(), user, and wfLocalFile().
Ensure that the job queue is empty before continuing.
Definition at line 44 of file UploadFromUrlTest.php.
References $job, and JobQueueGroup\singleton().
Definition at line 199 of file UploadFromUrlTest.php.
References $e, $job, array(), deleteFile(), doApiRequest(), WikiPage\factory(), Title\GAID_FOR_UPDATE, JobQueueGroup\singleton(), user, and wfLocalFile().
UploadFromUrlTest::testSetupUrlDownload | ( | $ | data | ) |
testClearQueue
Definition at line 55 of file UploadFromUrlTest.php.
References $e, $job, array(), doApiRequest(), JobQueueGroup\singleton(), and user.
UploadFromUrlTest::testSyncDownload | ( | $ | data | ) |
testClearQueue
Definition at line 175 of file UploadFromUrlTest.php.
References $job, array(), deleteFile(), doApiRequest(), JobQueueGroup\singleton(), and user.