MediaWiki  REL1_20
FileBackendTest Class Reference

FileRepo FileBackend medium More...

Inheritance diagram for FileBackendTest:
Collaboration diagram for FileBackendTest:

List of all members.

Public Member Functions

 assertBackendPathsConsistent (array $paths)
 assertGoodStatus ($status, $msg)
 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 ()
 testDoOperationsFailing ()
 testDoOperationsPipeline ()
 testDoQuickOperations ()
 testExtensionFromPath ($path, $res)
 provider_testExtensionFromPath
 testGetDirectoryList ()
 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
 testLockCalls ()
 testMove ($op)
 provider_testMove
 testNormalizeStoragePath ($path, $res)
 provider_normalizeStoragePath
 testParentStoragePath ($path, $res)
 provider_testParentStoragePath
 testPrepareAndClean ($path, $isOK)
 provider_testPrepareAndClean
 testRecursiveClean ()
 testSplitStoragePath ($path, $res)
 provider_testSplitStoragePath
 testStore ($op)
 provider_testStore

Public Attributes

 $multiBackend

Private Member Functions

 backendClass ()
 baseStorePath ()
 create (array $params)
 deleteFiles ($container)
 doTestConcatenate ($params, $srcs, $srcsContent, $alreadyExists, $okStatus)
 doTestCopy ($op)
 doTestCreate ($op, $alreadyExists, $okStatus, $newSize)
 doTestDelete ($op, $withSource, $okStatus)
 doTestDoOperations ()
 doTestDoOperationsFailing ()
 doTestDoOperationsPipeline ()
 doTestDoQuickOperations ()
 doTestGetDirectoryList ()
 doTestGetFileContents ($source, $content)
 doTestGetFileList ()
 doTestGetFileStat ($path, $content, $alreadyExists)
 doTestGetLocalCopy ($source, $content)
 doTestGetLocalReference ($source, $content)
 doTestLockCalls ()
 doTestMove ($op)
 doTestPrepareAndClean ($path, $isOK)
 doTestRecursiveClean ()
 doTestStore ($op)
 prepare (array $params)

Private Attributes

 $backend
 $filesToPrune = array()

Static Private Attributes

static $backendToUse

Detailed Description

FileRepo FileBackend medium

Definition at line 8 of file FileBackendTest.php.


Member Function Documentation

FileBackendTest::deleteFiles ( container) [private]

Definition at line 1842 of file FileBackendTest.php.

References $file, and baseStorePath().

Referenced by tearDownFiles().

FileBackendTest::doTestConcatenate ( params,
srcs,
srcsContent,
alreadyExists,
okStatus 
) [private]

Definition at line 734 of file FileBackendTest.php.

References $ok, $params, $source, assertGoodStatus(), backendClass(), and prepare().

Referenced by testConcatenate().

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

Definition at line 561 of file FileBackendTest.php.

References assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().

Referenced by testCreate().

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

Definition at line 937 of file FileBackendTest.php.

References $source, assertGoodStatus(), backendClass(), and prepare().

Referenced by testGetFileContents().

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

Definition at line 862 of file FileBackendTest.php.

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

Referenced by testGetFileStat().

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

Definition at line 982 of file FileBackendTest.php.

References $source, assertGoodStatus(), backendClass(), and prepare().

Referenced by testGetLocalCopy().

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

Definition at line 1025 of file FileBackendTest.php.

References $source, assertGoodStatus(), backendClass(), create(), and prepare().

Referenced by testGetLocalReference().

Definition at line 1767 of file FileBackendTest.php.

References backendClass(), LockManager\LOCK_EX, and LockManager\LOCK_SH.

Referenced by testLockCalls().

FileBackendTest::doTestMove ( op) [private]
FileBackendTest::doTestPrepareAndClean ( path,
isOK 
) [private]

Definition at line 1075 of file FileBackendTest.php.

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

Referenced by testPrepareAndClean().

Definition at line 340 of file FileBackendTest.php.

References $source, and baseStorePath().

provider_testCreate

Definition at line 614 of file FileBackendTest.php.

References baseStorePath().

Definition at line 518 of file FileBackendTest.php.

References $source, and baseStorePath().

Definition at line 431 of file FileBackendTest.php.

References $source, and baseStorePath().

Reimplemented from MediaWikiTestCase.

Definition at line 1865 of file FileBackendTest.php.

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

provider_testConcatenate

Definition at line 719 of file FileBackendTest.php.

References doTestConcatenate(), and tearDownFiles().

provider_testCopy

Definition at line 285 of file FileBackendTest.php.

References doTestCopy(), and tearDownFiles().

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

provider_testCreate

Definition at line 549 of file FileBackendTest.php.

References doTestCreate(), and tearDownFiles().

FileBackendTest::testDelete ( op,
withSource,
okStatus 
)

provider_testDelete

Definition at line 466 of file FileBackendTest.php.

References doTestDelete(), and tearDownFiles().

FileBackendTest::testExtensionFromPath ( path,
res 
)

provider_testExtensionFromPath

Definition at line 181 of file FileBackendTest.php.

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

FileBackendTest::testGetFileContents ( source,
content 
)

provider_testGetFileContents

Definition at line 925 of file FileBackendTest.php.

References $source, doTestGetFileContents(), and tearDownFiles().

FileBackendTest::testGetFileStat ( path,
content,
alreadyExists 
)

provider_testGetFileStat

Definition at line 850 of file FileBackendTest.php.

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

FileBackendTest::testGetLocalCopy ( source,
content 
)

provider_testGetLocalCopy

Definition at line 970 of file FileBackendTest.php.

References $source, doTestGetLocalCopy(), and tearDownFiles().

FileBackendTest::testGetLocalReference ( source,
content 
)

provider_testGetLocalReference

Definition at line 1013 of file FileBackendTest.php.

References $source, doTestGetLocalReference(), and tearDownFiles().

FileBackendTest::testIsStoragePath ( path,
isStorePath 
)

provider_testIsStoragePath

Definition at line 86 of file FileBackendTest.php.

References $path, and FileBackend\isStoragePath().

Definition at line 1762 of file FileBackendTest.php.

References doTestLockCalls().

provider_testMove

Definition at line 375 of file FileBackendTest.php.

References doTestMove(), and tearDownFiles().

provider_normalizeStoragePath

Definition at line 134 of file FileBackendTest.php.

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

FileBackendTest::testParentStoragePath ( path,
res 
)

provider_testParentStoragePath

Definition at line 160 of file FileBackendTest.php.

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

FileBackendTest::testPrepareAndClean ( path,
isOK 
)

provider_testPrepareAndClean

Definition at line 1055 of file FileBackendTest.php.

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

FileBackendTest::testSplitStoragePath ( path,
res 
)

provider_testSplitStoragePath

Definition at line 110 of file FileBackendTest.php.

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

provider_testStore

Definition at line 198 of file FileBackendTest.php.

References doTestStore(), and tearDownFiles().


Member Data Documentation

FileBackendTest::$backend [private]

Definition at line 9 of file FileBackendTest.php.

FileBackendTest::$backendToUse [static, private]

Definition at line 11 of file FileBackendTest.php.

Referenced by setUp().

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

Definition at line 10 of file FileBackendTest.php.

FileBackendTest::$multiBackend

Definition at line 9 of file FileBackendTest.php.


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