MediaWiki  1.30.0
UploadFromUrlTestSuite Class Reference
Inheritance diagram for UploadFromUrlTestSuite:
Collaboration diagram for UploadFromUrlTestSuite:

Static Public Member Functions

static addTables (&$tables)
 
static suite ()
 

Public Attributes

 $savedGlobals = []
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Private Member Functions

 setupUploadDir ()
 Create a dummy uploads directory which will contain a couple of files in order to pass existence tests. More...
 

Static Private Member Functions

static deleteDirs ( $dirs)
 Delete the specified directories, if they exist. More...
 
static deleteFiles ( $files)
 Delete the specified files, if they exist. More...
 

Detailed Description

Definition at line 5 of file UploadFromUrlTestSuite.php.

Member Function Documentation

◆ addTables()

static UploadFromUrlTestSuite::addTables ( $tables)
static

Definition at line 8 of file UploadFromUrlTestSuite.php.

References $tables.

◆ deleteDirs()

static UploadFromUrlTestSuite::deleteDirs (   $dirs)
staticprivate

Delete the specified directories, if they exist.

Must be empty.

Parameters
array$dirsFull paths to directories to delete.

Definition at line 110 of file UploadFromUrlTestSuite.php.

References $dir, $dirs, and as.

◆ deleteFiles()

static UploadFromUrlTestSuite::deleteFiles (   $files)
staticprivate

Delete the specified files, if they exist.

Parameters
array$filesFull paths to files to delete.

Definition at line 97 of file UploadFromUrlTestSuite.php.

References as.

◆ setUp()

◆ setupUploadDir()

UploadFromUrlTestSuite::setupUploadDir ( )
private

Create a dummy uploads directory which will contain a couple of files in order to pass existence tests.

Returns
string The directory

Definition at line 124 of file UploadFromUrlTestSuite.php.

References $dir, $IP, copy, global, wfDebug(), and wfMkdirParents().

◆ suite()

static UploadFromUrlTestSuite::suite ( )
static

Definition at line 140 of file UploadFromUrlTestSuite.php.

◆ tearDown()

UploadFromUrlTestSuite::tearDown ( )
protected

Member Data Documentation

◆ $savedGlobals

UploadFromUrlTestSuite::$savedGlobals = []

Definition at line 6 of file UploadFromUrlTestSuite.php.


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