MediaWiki  REL1_19
FileBackendTest Class Reference

FileRepo FileBackend More...

Inheritance diagram for FileBackendTest:
Collaboration diagram for FileBackendTest:

List of all members.

Public Member Functions

 doTestConcatenate ($params, $srcs, $srcsContent, $alreadyExists, $okStatus)
 doTestCopy ($op)
 doTestDoOperations ()
 doTestDoOperationsFailing ()
 doTestGetFileContents ($source, $content)
 doTestGetLocalCopy ($source, $content)
 doTestPrepareAndClean ($path, $isOK)
 doTestStore ($op)
 provider_normalizeStoragePath ()
 provider_testConcatenate ()
 provider_testCopy ()
 provider_testCreate ()
 provider_testCreate
 provider_testDelete ()
 provider_testExtensionFromPath ()
 provider_testGetFileContents ()
 provider_testGetFileStat ()
 provider_testGetLocalCopy ()
 provider_testGetLocalReference ()
 provider_testIsStoragePath ()
 provider_testMove ()
 provider_testParentStoragePath ()
 provider_testPrepareAndClean ()
 provider_testSplitStoragePath ()
 provider_testStore ()
 setUp ()
 tearDown ()
 tearDownFiles ()
 testConcatenate ($op, $srcs, $srcsContent, $alreadyExists, $okStatus)
 provider_testConcatenate
 testCopy ($op)
 provider_testCopy
 testCreate ($op, $alreadyExists, $okStatus, $newSize)
 provider_testCreate
 testDelete ($op, $withSource, $okStatus)
 provider_testDelete
 testDoOperations ()
 testExtensionFromPath ($path, $res)
 provider_testExtensionFromPath
 testGetFileContents ($source, $content)
 provider_testGetFileContents
 testGetFileList ()
 testGetFileStat ($path, $content, $alreadyExists)
 provider_testGetFileStat
 testGetLocalCopy ($source, $content)
 provider_testGetLocalCopy
 testGetLocalReference ($source, $content)
 provider_testGetLocalReference
 testIsStoragePath ($path, $isStorePath)
 provider_testIsStoragePath
 testMove ($op)
 provider_testMove
 testNormalizeStoragePath ($path, $res)
 provider_normalizeStoragePath
 testParentStoragePath ($path, $res)
 provider_testParentStoragePath
 testPrepareAndClean ($path, $isOK)
 provider_testPrepareAndClean
 testSplitStoragePath ($path, $res)
 provider_testSplitStoragePath
 testStore ($op)
 provider_testStore

Public Attributes

 $multiBackend

Private Member Functions

 backendClass ()
 baseStorePath ()
 deleteFiles ($container)
 doTestCreate ($op, $alreadyExists, $okStatus, $newSize)
 doTestDelete ($op, $withSource, $okStatus)
 doTestGetFileList ()
 doTestGetFileStat ($path, $content, $alreadyExists)
 doTestGetLocalReference ($source, $content)
 doTestMove ($op)
 prepare (array $params)
 recursiveClean ($dir)

Private Attributes

 $backend
 $dirsToPrune = array()
 $filesToPrune = array()

Static Private Attributes

static $backendToUse

Detailed Description

FileRepo FileBackend

Definition at line 7 of file FileBackendTest.php.


Member Function Documentation

FileBackendTest::deleteFiles ( container) [private]

Definition at line 1337 of file FileBackendTest.php.

References $file, and baseStorePath().

Referenced by tearDownFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

FileBackendTest::doTestConcatenate ( params,
srcs,
srcsContent,
alreadyExists,
okStatus 
)

Definition at line 670 of file FileBackendTest.php.

References $ok, backendClass(), and prepare().

Referenced by testConcatenate().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 289 of file FileBackendTest.php.

References backendClass(), and prepare().

Referenced by testCopy().

Here is the call graph for this function:

Here is the caller graph for this function:

FileBackendTest::doTestCreate ( op,
alreadyExists,
okStatus,
newSize 
) [private]

Definition at line 547 of file FileBackendTest.php.

References backendClass(), and prepare().

Referenced by testCreate().

Here is the call graph for this function:

Here is the caller graph for this function:

FileBackendTest::doTestDelete ( op,
withSource,
okStatus 
) [private]

Definition at line 466 of file FileBackendTest.php.

References backendClass(), and prepare().

Referenced by testDelete().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1050 of file FileBackendTest.php.

References baseStorePath(), prepare(), and wfBaseConvert().

Referenced by testDoOperations().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1122 of file FileBackendTest.php.

References baseStorePath(), prepare(), and wfBaseConvert().

Referenced by testDoOperations().

Here is the call graph for this function:

Here is the caller graph for this function:

FileBackendTest::doTestGetFileContents ( source,
content 
)

Definition at line 859 of file FileBackendTest.php.

References backendClass(), and prepare().

Referenced by testGetFileContents().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1196 of file FileBackendTest.php.

References $file, $files, backendClass(), baseStorePath(), and prepare().

Referenced by testGetFileList().

Here is the call graph for this function:

Here is the caller graph for this function:

FileBackendTest::doTestGetFileStat ( path,
content,
alreadyExists 
) [private]

Definition at line 798 of file FileBackendTest.php.

References $path, $size, backendClass(), prepare(), and wfTimestamp().

Referenced by testGetFileStat().

Here is the call graph for this function:

Here is the caller graph for this function:

FileBackendTest::doTestGetLocalCopy ( source,
content 
)

Definition at line 904 of file FileBackendTest.php.

References backendClass(), and prepare().

Referenced by testGetLocalCopy().

Here is the call graph for this function:

Here is the caller graph for this function:

FileBackendTest::doTestGetLocalReference ( source,
content 
) [private]

Definition at line 947 of file FileBackendTest.php.

References backendClass(), and prepare().

Referenced by testGetLocalReference().

Here is the call graph for this function:

Here is the caller graph for this function:

FileBackendTest::doTestMove ( op) [private]

Definition at line 377 of file FileBackendTest.php.

References backendClass(), and prepare().

Referenced by testMove().

Here is the call graph for this function:

Here is the caller graph for this function:

FileBackendTest::doTestPrepareAndClean ( path,
isOK 
)

Definition at line 998 of file FileBackendTest.php.

References $path, backendClass(), and prepare().

Referenced by testPrepareAndClean().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 207 of file FileBackendTest.php.

References backendClass(), FSFile\getPropsFromPath(), and prepare().

Referenced by testStore().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 733 of file FileBackendTest.php.

References baseStorePath(), and wfTempDir().

Here is the call graph for this function:

Definition at line 330 of file FileBackendTest.php.

References baseStorePath().

Here is the call graph for this function:

provider_testCreate

Definition at line 598 of file FileBackendTest.php.

References baseStorePath().

Here is the call graph for this function:

Definition at line 504 of file FileBackendTest.php.

References baseStorePath().

Here is the call graph for this function:

Definition at line 879 of file FileBackendTest.php.

References baseStorePath().

Here is the call graph for this function:

Definition at line 833 of file FileBackendTest.php.

References baseStorePath().

Here is the call graph for this function:

Definition at line 922 of file FileBackendTest.php.

References baseStorePath().

Here is the call graph for this function:

Definition at line 965 of file FileBackendTest.php.

References baseStorePath().

Here is the call graph for this function:

Definition at line 419 of file FileBackendTest.php.

References baseStorePath().

Here is the call graph for this function:

Definition at line 988 of file FileBackendTest.php.

References baseStorePath().

Here is the call graph for this function:

Definition at line 243 of file FileBackendTest.php.

References baseStorePath(), and TempFSFile\factory().

Here is the call graph for this function:

FileBackendTest::recursiveClean ( dir) [private]

Definition at line 1347 of file FileBackendTest.php.

References $dir, and FileBackend\parentStoragePath().

Referenced by tearDownFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 13 of file FileBackendTest.php.

References $backendToUse, $wgFileBackends, MediaWikiTestCase\getCliArg(), and wfTempDir().

Here is the call graph for this function:

Definition at line 1355 of file FileBackendTest.php.

FileBackendTest::testConcatenate ( op,
srcs,
srcsContent,
alreadyExists,
okStatus 
)

provider_testConcatenate

Definition at line 655 of file FileBackendTest.php.

References doTestConcatenate(), and tearDownFiles().

Here is the call graph for this function:

provider_testCopy

Definition at line 277 of file FileBackendTest.php.

References doTestCopy(), and tearDownFiles().

Here is the call graph for this function:

FileBackendTest::testCreate ( op,
alreadyExists,
okStatus,
newSize 
)

provider_testCreate

Definition at line 535 of file FileBackendTest.php.

References doTestCreate(), and tearDownFiles().

Here is the call graph for this function:

FileBackendTest::testDelete ( op,
withSource,
okStatus 
)

provider_testDelete

Definition at line 454 of file FileBackendTest.php.

References doTestDelete(), and tearDownFiles().

Here is the call graph for this function:

Definition at line 1026 of file FileBackendTest.php.

References doTestDoOperations(), doTestDoOperationsFailing(), and tearDownFiles().

Here is the call graph for this function:

FileBackendTest::testExtensionFromPath ( path,
res 
)

provider_testExtensionFromPath

Definition at line 175 of file FileBackendTest.php.

References $path, $res, and FileBackend\extensionFromPath().

Here is the call graph for this function:

FileBackendTest::testGetFileContents ( source,
content 
)

provider_testGetFileContents

Definition at line 847 of file FileBackendTest.php.

References doTestGetFileContents(), and tearDownFiles().

Here is the call graph for this function:

Definition at line 1184 of file FileBackendTest.php.

References doTestGetFileList(), and tearDownFiles().

Here is the call graph for this function:

FileBackendTest::testGetFileStat ( path,
content,
alreadyExists 
)

provider_testGetFileStat

Definition at line 786 of file FileBackendTest.php.

References $path, doTestGetFileStat(), and tearDownFiles().

Here is the call graph for this function:

FileBackendTest::testGetLocalCopy ( source,
content 
)

provider_testGetLocalCopy

Definition at line 892 of file FileBackendTest.php.

References doTestGetLocalCopy(), and tearDownFiles().

Here is the call graph for this function:

FileBackendTest::testGetLocalReference ( source,
content 
)

provider_testGetLocalReference

Definition at line 935 of file FileBackendTest.php.

References doTestGetLocalReference(), and tearDownFiles().

Here is the call graph for this function:

FileBackendTest::testIsStoragePath ( path,
isStorePath 
)

provider_testIsStoragePath

Definition at line 80 of file FileBackendTest.php.

References $path, and FileBackend\isStoragePath().

Here is the call graph for this function:

provider_testMove

Definition at line 365 of file FileBackendTest.php.

References doTestMove(), and tearDownFiles().

Here is the call graph for this function:

provider_normalizeStoragePath

Definition at line 128 of file FileBackendTest.php.

References $path, $res, and FileBackend\normalizeStoragePath().

Here is the call graph for this function:

FileBackendTest::testParentStoragePath ( path,
res 
)

provider_testParentStoragePath

Definition at line 154 of file FileBackendTest.php.

References $path, $res, and FileBackend\parentStoragePath().

Here is the call graph for this function:

FileBackendTest::testPrepareAndClean ( path,
isOK 
)

provider_testPrepareAndClean

Definition at line 978 of file FileBackendTest.php.

References $path, doTestPrepareAndClean(), and tearDownFiles().

Here is the call graph for this function:

FileBackendTest::testSplitStoragePath ( path,
res 
)

provider_testSplitStoragePath

Definition at line 104 of file FileBackendTest.php.

References $path, $res, and FileBackend\splitStoragePath().

Here is the call graph for this function:

provider_testStore

Definition at line 192 of file FileBackendTest.php.

References doTestStore(), and tearDownFiles().

Here is the call graph for this function:


Member Data Documentation

FileBackendTest::$backend [private]

Definition at line 8 of file FileBackendTest.php.

FileBackendTest::$backendToUse [static, private]

Definition at line 11 of file FileBackendTest.php.

Referenced by setUp().

FileBackendTest::$dirsToPrune = array() [private]

Definition at line 10 of file FileBackendTest.php.

FileBackendTest::$filesToPrune = array() [private]

Definition at line 9 of file FileBackendTest.php.

FileBackendTest::$multiBackend

Definition at line 8 of file FileBackendTest.php.


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