MediaWiki  REL1_22
StoreBatchTest Class Reference

FileRepo medium More...

Inheritance diagram for StoreBatchTest:
Collaboration diagram for StoreBatchTest:

List of all members.

Public Member Functions

 teststore ()
 FileRepo::store

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.
 tearDown ()

Protected Attributes

 $createdFiles
 $date
FileRepo $repo
 *

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.

Detailed Description

FileRepo medium

Definition at line 7 of file StoreBatchTest.php.


Member Function Documentation

StoreBatchTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 13 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.

Parameters:
$fnstring The title of the image
$infnstring The name of the file (in the filesystem)
$otherfnstring The name of the different file (in the filesystem)
$fromrepobool 'true' if we want to copy from a virtual URL out of the Repo.

Definition at line 90 of file StoreBatchTest.php.

StoreBatchTest::storeit ( originalName,
srcPath,
flags 
) [private]

Store a file or virtual URL source into a media file name.

Parameters:
$originalNamestring The title of the image
$srcPathstring The filepath or virtual URL
$flagsinteger Flags to pass into repo::store().
Returns:
FileRepoStatus

Definition at line 70 of file StoreBatchTest.php.

StoreBatchTest::tearDown ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 51 of file StoreBatchTest.php.

References array(), as, and FileBackend\parentStoragePath().


Member Data Documentation

StoreBatchTest::$createdFiles [protected]

Definition at line 9 of file StoreBatchTest.php.

StoreBatchTest::$date [protected]

Definition at line 10 of file StoreBatchTest.php.

FileRepo StoreBatchTest::$repo [protected]

*

Definition at line 11 of file StoreBatchTest.php.


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