MediaWiki
REL1_23
|
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 302 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.
Definition at line 267 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 126 of file UploadFromUrlTest.php.
References deleteFile(), doAsyncUpload(), user, and wfLocalFile().
testClearQueue
Definition at line 144 of file UploadFromUrlTest.php.
References array(), deleteFile(), doApiRequest(), doAsyncUpload(), user, and wfLocalFile().
Ensure that the job queue is empty before continuing.
Definition at line 42 of file UploadFromUrlTest.php.
References $job, and JobQueueGroup\singleton().
Definition at line 197 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 53 of file UploadFromUrlTest.php.
References $e, $job, array(), doApiRequest(), JobQueueGroup\singleton(), and user.
UploadFromUrlTest::testSyncDownload | ( | $ | data | ) |
testClearQueue
Definition at line 173 of file UploadFromUrlTest.php.
References $job, array(), deleteFile(), doApiRequest(), JobQueueGroup\singleton(), and user.