MediaWiki
REL1_21
|
Broken Upload Database More...
Public Member Functions | |
testAsyncUpload ($data) | |
testLogin testClearQueue | |
testAsyncUploadWarning ($data) | |
testLogin testClearQueue | |
testClearQueue () | |
Ensure that the job queue is empty before continuing. | |
testLeaveMessage () | |
testLogin () | |
testSetupUrlDownload ($data) | |
testLogin testClearQueue | |
testSyncDownload ($data) | |
testLogin 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 () | |
setUp and tearDown should (where significant) happen in reverse order. | |
Private Member Functions | |
doAsyncUpload ($token, $ignoreWarnings=false, $leaveMessage=false) | |
Helper function to perform an async upload, execute the job and fetch the status. |
Broken Upload Database
Definition at line 8 of file UploadFromUrlTest.php.
UploadFromUrlTest::deleteFile | ( | $ | name | ) | [protected] |
Definition at line 337 of file UploadFromUrlTest.php.
References $file, $name, $page, $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 24 of file UploadFromUrlTest.php.
References array(), and wfSetupSession().
Referenced by doAsyncUpload(), testAsyncUploadWarning(), testLeaveMessage(), testLogin(), 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 298 of file UploadFromUrlTest.php.
References $job, $params, array(), doApiRequest(), and JobQueueGroup\singleton().
Referenced by testAsyncUpload(), and testAsyncUploadWarning().
UploadFromUrlTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from ApiTestCase.
Definition at line 10 of file UploadFromUrlTest.php.
References deleteFile(), global, wfLocalFile(), and wfSetupSession().
UploadFromUrlTest::testAsyncUpload | ( | $ | data | ) |
testLogin testClearQueue
Definition at line 153 of file UploadFromUrlTest.php.
References deleteFile(), doAsyncUpload(), user, and wfLocalFile().
testLogin testClearQueue
Definition at line 172 of file UploadFromUrlTest.php.
References array(), deleteFile(), doApiRequest(), doAsyncUpload(), user, and wfLocalFile().
Ensure that the job queue is empty before continuing.
Definition at line 39 of file UploadFromUrlTest.php.
References $job, and JobQueueGroup\singleton().
Definition at line 227 of file UploadFromUrlTest.php.
References $job, $page, array(), deleteFile(), doApiRequest(), WikiPage\factory(), Title\GAID_FOR_UPDATE, Revision\newFromTitle(), JobQueueGroup\singleton(), user, and wfLocalFile().
Definition at line 51 of file UploadFromUrlTest.php.
References array(), doApiRequest(), and user.
UploadFromUrlTest::testSetupUrlDownload | ( | $ | data | ) |
testLogin testClearQueue
Definition at line 79 of file UploadFromUrlTest.php.
References $job, array(), doApiRequest(), JobQueueGroup\singleton(), and user.
UploadFromUrlTest::testSyncDownload | ( | $ | data | ) |
testLogin testClearQueue
Definition at line 203 of file UploadFromUrlTest.php.
References $job, array(), deleteFile(), doApiRequest(), JobQueueGroup\singleton(), and user.