|
MediaWiki
REL1_21
|


Public Member Functions | |
| teststore () | |
Protected Member Functions | |
| setUp () | |
| setUp and tearDown should (where significant) happen in reverse order. | |
| tearDown () | |
Private Member Functions | |
| storecohort ($fn, $infn, $otherfn, $fromrepo) | |
| Test storing a file using different flags. | |
| storeit ($originalName, $srcPath, $flags) | |
| Store a file or virtual URL source into a media file name. | |
FileRepo medium
Definition at line 6 of file StoreBatchTest.php.
| StoreBatchTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 8 of file StoreBatchTest.php.
References $name, array(), as, FileRepo, MediaWikiTestCase\getCliArg(), global, and wfTempDir().
| StoreBatchTest::storecohort | ( | $ | fn, |
| $ | infn, | ||
| $ | otherfn, | ||
| $ | fromrepo | ||
| ) | [private] |
Test storing a file using different flags.
| $fn | string The title of the image |
| $infn | string The name of the file (in the filesystem) |
| $otherfn | string The name of the different file (in the filesystem) |
| $fromrepo | logical 'true' if we want to copy from a virtual URL out of the Repo. |
Definition at line 83 of file StoreBatchTest.php.
References $f, FileRepo\OVERWRITE, FileRepo\OVERWRITE_SAME, and storeit().
Referenced by teststore().
| StoreBatchTest::storeit | ( | $ | originalName, |
| $ | srcPath, | ||
| $ | flags | ||
| ) | [private] |
Store a file or virtual URL source into a media file name.
| $originalName | string The title of the image |
| $srcPath | string The filepath or virtual URL |
| $flags | integer Flags to pass into repo::store(). |
Definition at line 64 of file StoreBatchTest.php.
References $flags, and $result.
Referenced by storecohort().
| StoreBatchTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 46 of file StoreBatchTest.php.
References array(), as, and FileBackend\parentStoragePath().
Definition at line 118 of file StoreBatchTest.php.
References $IP, global, and storecohort().