|
| setupUploadDir () |
| Create a dummy uploads directory which will contain a couple of files in order to pass existence tests.
|
|
|
static | deleteDirs ( $dirs) |
| Delete the specified directories, if they exist.
|
|
static | deleteFiles ( $files) |
| Delete the specified files, if they exist.
|
|
Definition at line 5 of file UploadFromUrlTestSuite.php.
◆ addTables()
static UploadFromUrlTestSuite::addTables |
( |
& | $tables | ) |
|
|
static |
◆ deleteDirs()
static UploadFromUrlTestSuite::deleteDirs |
( |
| $dirs | ) |
|
|
staticprivate |
Delete the specified directories, if they exist.
Must be empty.
- Parameters
-
array | $dirs | Full paths to directories to delete. |
Definition at line 110 of file UploadFromUrlTestSuite.php.
References $dir, and $dirs.
◆ deleteFiles()
static UploadFromUrlTestSuite::deleteFiles |
( |
| $files | ) |
|
|
staticprivate |
Delete the specified files, if they exist.
- Parameters
-
array | $files | Full paths to files to delete. |
Definition at line 97 of file UploadFromUrlTestSuite.php.
◆ setUp()
UploadFromUrlTestSuite::setUp |
( |
| ) |
|
|
protected |
Definition at line 18 of file UploadFromUrlTestSuite.php.
References $context, $GLOBALS, $IP, $messageMemc, $parserMemc, $wgLang, $wgMemc, $wgNamespaceAliases, $wgNamespaceProtection, $wgOut, $wgParser, $wgParserCacheType, $wgParserConf, $wgRequest, $wgStyleDirectory, $wgUser, CACHE_NONE, FileBackendGroup\destroySingleton(), RepoGroup\destroySingleton(), RequestContext\getMain(), NS_FILE, NS_FILE_TALK, NS_MEDIAWIKI, RequestContext\resetMain(), wfGetMainCache(), wfGetMessageCacheStorage(), and wfWikiID().
◆ setupUploadDir()
UploadFromUrlTestSuite::setupUploadDir |
( |
| ) |
|
|
private |
◆ suite()
static UploadFromUrlTestSuite::suite |
( |
| ) |
|
|
static |
◆ tearDown()
UploadFromUrlTestSuite::tearDown |
( |
| ) |
|
|
protected |
◆ $savedGlobals
UploadFromUrlTestSuite::$savedGlobals = [] |
The documentation for this class was generated from the following file: