MediaWiki  master
UploadFromUrlTest Class Reference

Broken Upload Database. More...

Inheritance diagram for UploadFromUrlTest:
Collaboration diagram for UploadFromUrlTest:

Public Member Functions

 testClearQueue ()
 Ensure that the job queue is empty before continuing. More...
 
 testSetupUrlDownload ( $data)
 testClearQueue More...
 
 testSyncDownload ( $data)
 testClearQueue More...
 
- Public Member Functions inherited from ApiTestCase
 testApiTestGroup ()
 

Protected Member Functions

 deleteFile ( $name)
 
 doApiRequest (array $params, array $unused=null, $appendModule=false, User $user=null, $tokenType=null)
 
 setUp ()
 
- Protected Member Functions inherited from ApiTestCase
 doApiRequest (array $params, array $session=null, $appendModule=false, User $user=null, $tokenType=null)
 Does the API request and returns the result. More...
 
 doApiRequestWithToken (array $params, array $session=null, User $user=null, $tokenType='auto')
 Convenience function to access the token parameter of doApiRequest() more succinctly. More...
 
 doLogin ( $testUser=null)
 Previously this would do API requests to log in, as well as setting $wgUser and the request context's user. More...
 
 getTokenList (TestUser $user, $session=null)
 
 setExpectedApiException ( $msg, $code=null, array $data=null, $httpCode=0)
 Expect an ApiUsageException to be thrown with the given parameters, which are the same as ApiUsageException::newWithMessage()'s parameters. More...
 
 setUp ()
 
 tearDown ()
 
- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ApiTestCase
static apiExceptionHasCode (ApiUsageException $ex, $code)
 
- Static Protected Member Functions inherited from ApiTestCase
static getErrorFormatter ()
 
- Protected Attributes inherited from ApiTestCase
ApiTestContext $apiContext
 
- Static Protected Attributes inherited from ApiTestCase
static $apiUrl
 
static $errorFormatter = null
 

Detailed Description

Broken Upload Database.

UploadFromUrl

Definition at line 10 of file UploadFromUrlTest.php.

Member Function Documentation

◆ deleteFile()

UploadFromUrlTest::deleteFile (   $name)
protected

◆ doApiRequest()

UploadFromUrlTest::doApiRequest ( array  $params,
array  $unused = null,
  $appendModule = false,
User  $user = null,
  $tokenType = null 
)
protected

Definition at line 24 of file UploadFromUrlTest.php.

References $req, $wgRequest, and null.

Referenced by testSetupUrlDownload(), and testSyncDownload().

◆ setUp()

UploadFromUrlTest::setUp ( )
protected

Definition at line 11 of file UploadFromUrlTest.php.

References deleteFile(), and wfLocalFile().

◆ testClearQueue()

UploadFromUrlTest::testClearQueue ( )

Ensure that the job queue is empty before continuing.

Definition at line 42 of file UploadFromUrlTest.php.

References $job, and JobQueueGroup\singleton().

◆ testSetupUrlDownload()

UploadFromUrlTest::testSetupUrlDownload (   $data)

testClearQueue

Definition at line 53 of file UploadFromUrlTest.php.

References $e, doApiRequest(), and user.

◆ testSyncDownload()

UploadFromUrlTest::testSyncDownload (   $data)

testClearQueue

Definition at line 112 of file UploadFromUrlTest.php.

References $job, deleteFile(), doApiRequest(), JobQueueGroup\singleton(), and user.


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