MediaWiki  REL1_21
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)
 doTestGetLocalCopyAndReference404 ()
 provider_normalizeStoragePath ()
 provider_testConcatenate ()
 provider_testGetFileContents ()
 provider_testGetFileHttpUrl ()
 provider_testGetFileStat ()
 provider_testGetLocalCopy ()
 provider_testGetLocalReference ()
 provider_testIsStoragePath ()
 provider_testParentStoragePath ()
 provider_testPrepareAndClean ()
 provider_testSplitStoragePath ()
 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
 testDescribe ($op, $withSource, $okStatus)
 provider_testDescribe
 testDoOperations ()
 testDoOperationsFailing ()
 testDoOperationsPipeline ()
 testDoQuickOperations ()
 testExtensionFromPath ($path, $res)
 provider_testExtensionFromPath
 testGetDirectoryList ()
 testGetFileContents ($source, $content)
 provider_testGetFileContents
 testGetFileHttpUrl ($source, $content)
 provider_testGetFileHttpUrl
 testGetFileList ()
 testGetFileStat ($path, $content, $alreadyExists)
 provider_testGetFileStat
 testGetLocalCopy ($source, $content)
 provider_testGetLocalCopy
 testGetLocalCopyAndReference404 ()
 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

Static Public Member Functions

static provider_testCopy ()
static provider_testCreate ()
 provider_testCreate
static provider_testDelete ()
static provider_testDescribe ()
static provider_testExtensionFromPath ()
static provider_testMove ()
static provider_testStore ()

Public Attributes

 $multiBackend

Protected Member Functions

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

Private Member Functions

 backendClass ()
 create (array $params)
 deleteFiles ($container)
 doTestConcatenate ($params, $srcs, $srcsContent, $alreadyExists, $okStatus)
 doTestCopy ($op)
 doTestCreate ($op, $alreadyExists, $okStatus, $newSize)
 doTestDelete ($op, $withSource, $okStatus)
 doTestDescribe ($op, $withSource, $okStatus)
 doTestDoOperations ()
 doTestDoOperationsFailing ()
 doTestDoOperationsPipeline ()
 doTestDoQuickOperations ()
 doTestGetDirectoryList ()
 doTestGetFileContents ($source, $content)
 doTestGetFileHttpUrl ($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)

Static Private Member Functions

static baseStorePath ()

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 2166 of file FileBackendTest.php.

References $file, array(), as, and baseStorePath().

Referenced by tearDownFiles().

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

Definition at line 867 of file FileBackendTest.php.

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

Referenced by testConcatenate().

FileBackendTest::doTestCreate ( op,
alreadyExists,
okStatus,
newSize 
) [private]
FileBackendTest::doTestDelete ( op,
withSource,
okStatus 
) [private]
FileBackendTest::doTestDescribe ( op,
withSource,
okStatus 
) [private]
FileBackendTest::doTestGetFileContents ( source,
content 
) [private]

Definition at line 1070 of file FileBackendTest.php.

References $path, $source, array(), as, assertGoodStatus(), backendClass(), and prepare().

Referenced by testGetFileContents().

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

Definition at line 1290 of file FileBackendTest.php.

References $source, $url, array(), assertGoodStatus(), backendClass(), prepare(), and request.

Referenced by testGetFileHttpUrl().

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

Definition at line 1129 of file FileBackendTest.php.

References $path, $source, array(), as, assertGoodStatus(), backendClass(), and prepare().

Referenced by testGetLocalCopy().

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

Definition at line 1198 of file FileBackendTest.php.

References $path, $source, array(), as, assertGoodStatus(), backendClass(), and prepare().

Referenced by testGetLocalReference().

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

Definition at line 1342 of file FileBackendTest.php.

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

Referenced by testPrepareAndClean().

Definition at line 353 of file FileBackendTest.php.

References $source, array(), and baseStorePath().

provider_testCreate

Definition at line 747 of file FileBackendTest.php.

References array(), and baseStorePath().

Definition at line 576 of file FileBackendTest.php.

References $source, array(), and baseStorePath().

Definition at line 656 of file FileBackendTest.php.

References $source, array(), and baseStorePath().

Definition at line 186 of file FileBackendTest.php.

References array().

Definition at line 91 of file FileBackendTest.php.

References array().

Definition at line 473 of file FileBackendTest.php.

References $source, array(), and baseStorePath().

Definition at line 251 of file FileBackendTest.php.

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

FileBackendTest::setUp ( ) [protected]

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

Reimplemented from MediaWikiTestCase.

Definition at line 13 of file FileBackendTest.php.

References $backendToUse, $name, array(), as, MediaWikiTestCase\getCliArg(), global, and wfTempDir().

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

provider_testConcatenate

Definition at line 852 of file FileBackendTest.php.

References doTestConcatenate(), file, 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 682 of file FileBackendTest.php.

References doTestCreate(), and tearDownFiles().

FileBackendTest::testDelete ( op,
withSource,
okStatus 
)

provider_testDelete

Definition at line 524 of file FileBackendTest.php.

References doTestDelete(), and tearDownFiles().

FileBackendTest::testDescribe ( op,
withSource,
okStatus 
)

provider_testDescribe

Definition at line 615 of file FileBackendTest.php.

References doTestDescribe(), 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 1058 of file FileBackendTest.php.

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

FileBackendTest::testGetFileHttpUrl ( source,
content 
)

provider_testGetFileHttpUrl

Definition at line 1278 of file FileBackendTest.php.

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

FileBackendTest::testGetFileStat ( path,
content,
alreadyExists 
)

provider_testGetFileStat

Definition at line 983 of file FileBackendTest.php.

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

FileBackendTest::testGetLocalCopy ( source,
content 
)

provider_testGetLocalCopy

Definition at line 1117 of file FileBackendTest.php.

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

FileBackendTest::testGetLocalReference ( source,
content 
)

provider_testGetLocalReference

Definition at line 1186 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 2043 of file FileBackendTest.php.

References doTestLockCalls().

provider_testMove

Definition at line 404 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 1322 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(), file, 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: