MediaWiki
REL1_19
|
Broken Upload More...
Public Member Functions | |
setUp () | |
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 ($params, $unused=null, $appendModule=false, $user=null) | |
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
Definition at line 7 of file UploadFromUrlTest.php.
UploadFromUrlTest::deleteFile | ( | $ | name | ) | [protected] |
Definition at line 336 of file UploadFromUrlTest.php.
References $file, $t, FileDeleteForm\doDelete(), Title\newFromText(), and wfFindFile().
Referenced by setUp(), testAsyncUpload(), testAsyncUploadWarning(), testLeaveMessage(), and testSyncDownload().
UploadFromUrlTest::doApiRequest | ( | $ | params, |
$ | unused = null , |
||
$ | appendModule = false , |
||
$ | user = null |
||
) | [protected] |
Reimplemented from ApiTestCase.
Definition at line 23 of file UploadFromUrlTest.php.
References 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 297 of file UploadFromUrlTest.php.
References $job, doApiRequest(), and Job\pop().
Referenced by testAsyncUpload(), and testAsyncUploadWarning().
Reimplemented from ApiTestCase.
Definition at line 9 of file UploadFromUrlTest.php.
References $wgAllowAsyncCopyUploads, $wgAllowCopyUploads, $wgEnableUploads, deleteFile(), wfLocalFile(), and wfSetupSession().
UploadFromUrlTest::testAsyncUpload | ( | $ | data | ) |
testLogin testClearQueue
Definition at line 152 of file UploadFromUrlTest.php.
References deleteFile(), doAsyncUpload(), and wfLocalFile().
testLogin testClearQueue
Definition at line 171 of file UploadFromUrlTest.php.
References deleteFile(), doApiRequest(), doAsyncUpload(), and wfLocalFile().
Ensure that the job queue is empty before continuing.
Definition at line 38 of file UploadFromUrlTest.php.
References $job, and Job\pop().
Definition at line 226 of file UploadFromUrlTest.php.
References $job, deleteFile(), doApiRequest(), Title\GAID_FOR_UPDATE, Revision\newFromTitle(), Job\pop(), and wfLocalFile().
Definition at line 50 of file UploadFromUrlTest.php.
References doApiRequest().
UploadFromUrlTest::testSetupUrlDownload | ( | $ | data | ) |
testLogin testClearQueue
Definition at line 78 of file UploadFromUrlTest.php.
References $job, doApiRequest(), and Job\pop().
UploadFromUrlTest::testSyncDownload | ( | $ | data | ) |
testLogin testClearQueue
Definition at line 202 of file UploadFromUrlTest.php.
References $job, deleteFile(), doApiRequest(), and Job\pop().