MediaWiki  REL1_24
MediaWikiMediaTestCase Class Reference

Specificly for testing Media handlers. More...

Inheritance diagram for MediaWikiMediaTestCase:
Collaboration diagram for MediaWikiMediaTestCase:

List of all members.

Protected Member Functions

 createsThumbnails ()
 Will the test create thumbnails (and thus do we need to set aside a temporary directory for them?)
 dataFile ($name, $type=null)
 Utility function: Get a new file object for a file on disk but not actually in db.
 getFilePath ()
 The result of this method will set the file path to use, as well as the protected member $filePath.
 getRepoOptions ()
 setUp ()

Protected Attributes

FSFileBackend $backend
 *
string $filePath
 *
FSRepo $repo
 *

Detailed Description

Specificly for testing Media handlers.

Sets up a FSFile backend

Definition at line 5 of file MediaWikiMediaTestCase.php.


Member Function Documentation

Will the test create thumbnails (and thus do we need to set aside a temporary directory for them?)

Override this method if your test case creates thumbnails

Returns:
bool

Reimplemented in ExifRotationTest.

Definition at line 61 of file MediaWikiMediaTestCase.php.

Referenced by setUp().

The result of this method will set the file path to use, as well as the protected member $filePath.

Returns:
string Path where files are

Definition at line 49 of file MediaWikiMediaTestCase.php.

Referenced by setUp().

Returns:
array Argument for FSRepo constructor

Reimplemented in ImagePage404Test.

Definition at line 35 of file MediaWikiMediaTestCase.php.

Referenced by setUp().


Member Data Documentation

FSFileBackend MediaWikiMediaTestCase::$backend [protected]

*

Definition at line 8 of file MediaWikiMediaTestCase.php.

string MediaWikiMediaTestCase::$filePath [protected]

*

Definition at line 9 of file MediaWikiMediaTestCase.php.

FSRepo MediaWikiMediaTestCase::$repo [protected]

*

Definition at line 7 of file MediaWikiMediaTestCase.php.


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