MediaWiki
1.23.2
|
Static Public Member Functions | |
static | addTables (&$tables) |
static | suite () |
Public Attributes | |
$savedGlobals = array() | |
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... | |
teardownUploadDir ( $dir) | |
Remove the dummy uploads directory. 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... | |
Private Attributes | |
$keepUploads | |
$uploadDir | |
Definition at line 5 of file UploadFromUrlTestSuite.php.
|
static |
Definition at line 8 of file UploadFromUrlTestSuite.php.
References $tables.
|
staticprivate |
Delete the specified directories, if they exist.
Must be empty.
$dirs | Array: full paths to directories to delete. |
Definition at line 155 of file UploadFromUrlTestSuite.php.
References $dir, $dirs, and as.
Referenced by teardownUploadDir().
|
staticprivate |
Delete the specified files, if they exist.
$files | Array: full paths to files to delete. |
Definition at line 142 of file UploadFromUrlTestSuite.php.
References $file, $files, and as.
Referenced by teardownUploadDir().
|
protected |
Definition at line 18 of file UploadFromUrlTestSuite.php.
References $GLOBALS, $IP, $messageMemc, $parserMemc, $wgLang, $wgMemc, $wgNamespaceAliases, $wgNamespaceProtection, $wgOut, $wgParser, $wgUser, array(), as, DeferredUpdates\clearPendingUpdates(), FileBackendGroup\destroySingleton(), RepoGroup\destroySingleton(), ContextSource\getLanguage(), global, NS_FILE, NS_FILE_TALK, NS_MEDIAWIKI, User, wfGetMainCache(), wfGetMessageCacheStorage(), wfGetParserCacheStorage(), and wfTempDir().
|
private |
Create a dummy uploads directory which will contain a couple of files in order to pass existence tests.
Definition at line 169 of file UploadFromUrlTestSuite.php.
References $dir, $IP, global, wfDebug(), wfMkdirParents(), and wfTempDir().
|
static |
Definition at line 199 of file UploadFromUrlTestSuite.php.
|
protected |
Definition at line 81 of file UploadFromUrlTestSuite.php.
References $GLOBALS, as, FileBackendGroup\destroySingleton(), RepoGroup\destroySingleton(), and teardownUploadDir().
|
private |
Remove the dummy uploads directory.
Definition at line 100 of file UploadFromUrlTestSuite.php.
References array(), deleteDirs(), and deleteFiles().
Referenced by tearDown().
|
private |
Definition at line 95 of file UploadFromUrlTestSuite.php.
UploadFromUrlTestSuite::$savedGlobals = array() |
Definition at line 6 of file UploadFromUrlTestSuite.php.
|
private |
Definition at line 94 of file UploadFromUrlTestSuite.php.