MediaWiki
REL1_21
|
FileRepo FileBackend medium More...
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 |
FileRepo FileBackend medium
Definition at line 8 of file FileBackendTest.php.
Definition at line 2179 of file FileBackendTest.php.
References assertGoodStatus().
Referenced by doTestCopy(), doTestCreate(), doTestDelete(), doTestDescribe(), doTestMove(), and doTestStore().
FileBackendTest::assertGoodStatus | ( | $ | status, |
$ | msg | ||
) |
Definition at line 2186 of file FileBackendTest.php.
References array().
Referenced by assertBackendPathsConsistent(), doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), doTestDescribe(), doTestDoOperations(), doTestDoOperationsPipeline(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileContents(), doTestGetFileHttpUrl(), doTestGetFileList(), doTestGetFileStat(), doTestGetLocalCopy(), doTestGetLocalReference(), doTestMove(), doTestPrepareAndClean(), doTestRecursiveClean(), and doTestStore().
FileBackendTest::backendClass | ( | ) | [private] |
Definition at line 79 of file FileBackendTest.php.
Referenced by doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), doTestDescribe(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileContents(), doTestGetFileHttpUrl(), doTestGetFileList(), doTestGetFileStat(), doTestGetLocalCopy(), doTestGetLocalCopyAndReference404(), doTestGetLocalReference(), doTestLockCalls(), doTestMove(), doTestPrepareAndClean(), doTestRecursiveClean(), and doTestStore().
static FileBackendTest::baseStorePath | ( | ) | [static, private] |
Definition at line 75 of file FileBackendTest.php.
Referenced by deleteFiles(), doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileList(), doTestGetLocalCopyAndReference404(), doTestRecursiveClean(), provider_testCopy(), provider_testCreate(), provider_testDelete(), provider_testDescribe(), provider_testGetFileContents(), provider_testGetFileHttpUrl(), provider_testGetFileStat(), provider_testGetLocalCopy(), provider_testGetLocalReference(), provider_testMove(), provider_testPrepareAndClean(), and provider_testStore().
FileBackendTest::create | ( | array $ | params | ) | [private] |
Definition at line 2150 of file FileBackendTest.php.
References array().
Referenced by doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), and doTestGetFileStat().
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::doTestCopy | ( | $ | op | ) | [private] |
Definition at line 297 of file FileBackendTest.php.
References $source, array(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testCopy().
FileBackendTest::doTestCreate | ( | $ | op, |
$ | alreadyExists, | ||
$ | okStatus, | ||
$ | newSize | ||
) | [private] |
Definition at line 694 of file FileBackendTest.php.
References array(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testCreate().
FileBackendTest::doTestDelete | ( | $ | op, |
$ | withSource, | ||
$ | okStatus | ||
) | [private] |
Definition at line 536 of file FileBackendTest.php.
References $source, array(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testDelete().
FileBackendTest::doTestDescribe | ( | $ | op, |
$ | withSource, | ||
$ | okStatus | ||
) | [private] |
Definition at line 627 of file FileBackendTest.php.
References $source, array(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testDescribe().
FileBackendTest::doTestDoOperations | ( | ) | [private] |
Definition at line 1436 of file FileBackendTest.php.
References array(), assertGoodStatus(), baseStorePath(), create(), prepare(), and wfBaseConvert().
Referenced by testDoOperations().
FileBackendTest::doTestDoOperationsFailing | ( | ) | [private] |
Definition at line 1622 of file FileBackendTest.php.
References array(), baseStorePath(), create(), prepare(), and wfBaseConvert().
Referenced by testDoOperationsFailing().
FileBackendTest::doTestDoOperationsPipeline | ( | ) | [private] |
Definition at line 1524 of file FileBackendTest.php.
References array(), assertGoodStatus(), baseStorePath(), create(), TempFSFile\factory(), file, prepare(), and wfBaseConvert().
Referenced by testDoOperationsPipeline().
FileBackendTest::doTestDoQuickOperations | ( | ) | [private] |
Definition at line 811 of file FileBackendTest.php.
References $file, $files, $path, array(), as, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testDoQuickOperations().
FileBackendTest::doTestGetDirectoryList | ( | ) | [private] |
Definition at line 1852 of file FileBackendTest.php.
References $file, $files, array(), as, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testGetDirectoryList().
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::doTestGetFileList | ( | ) | [private] |
Definition at line 1696 of file FileBackendTest.php.
References $file, $files, array(), as, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testGetFileList().
FileBackendTest::doTestGetFileStat | ( | $ | path, |
$ | content, | ||
$ | alreadyExists | ||
) | [private] |
Definition at line 995 of file FileBackendTest.php.
References $path, $size, $time, array(), assertGoodStatus(), backendClass(), create(), prepare(), and wfTimestamp().
Referenced by testGetFileStat().
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().
Definition at line 1261 of file FileBackendTest.php.
References array(), backendClass(), and baseStorePath().
Referenced by testGetLocalCopyAndReference404().
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::doTestLockCalls | ( | ) | [private] |
Definition at line 2048 of file FileBackendTest.php.
References array(), MediaWikiTestCase\assertType(), backendClass(), LockManager\LOCK_EX, LockManager\LOCK_SH, Status\newGood(), and release().
Referenced by testLockCalls().
FileBackendTest::doTestMove | ( | $ | op | ) | [private] |
Definition at line 416 of file FileBackendTest.php.
References $source, array(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testMove().
FileBackendTest::doTestPrepareAndClean | ( | $ | path, |
$ | isOK | ||
) | [private] |
Definition at line 1342 of file FileBackendTest.php.
References $path, array(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testPrepareAndClean().
FileBackendTest::doTestRecursiveClean | ( | ) | [private] |
Definition at line 1378 of file FileBackendTest.php.
References $dir, $dirs, array(), as, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testRecursiveClean().
FileBackendTest::doTestStore | ( | $ | op | ) | [private] |
Definition at line 213 of file FileBackendTest.php.
References $source, array(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), FSFile\getPropsFromPath(), and prepare().
Referenced by testStore().
FileBackendTest::prepare | ( | array $ | params | ) | [private] |
Definition at line 2145 of file FileBackendTest.php.
Referenced by doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), doTestDescribe(), doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileContents(), doTestGetFileHttpUrl(), doTestGetFileList(), doTestGetFileStat(), doTestGetLocalCopy(), doTestGetLocalReference(), doTestMove(), doTestPrepareAndClean(), doTestRecursiveClean(), and doTestStore().
Definition at line 139 of file FileBackendTest.php.
References array().
Definition at line 930 of file FileBackendTest.php.
References $params, array(), and wfTempDir().
static FileBackendTest::provider_testCopy | ( | ) | [static] |
Definition at line 353 of file FileBackendTest.php.
References $source, array(), and baseStorePath().
static FileBackendTest::provider_testCreate | ( | ) | [static] |
provider_testCreate
Definition at line 747 of file FileBackendTest.php.
References array(), and baseStorePath().
static FileBackendTest::provider_testDelete | ( | ) | [static] |
Definition at line 576 of file FileBackendTest.php.
References $source, array(), and baseStorePath().
static FileBackendTest::provider_testDescribe | ( | ) | [static] |
Definition at line 656 of file FileBackendTest.php.
References $source, array(), and baseStorePath().
static FileBackendTest::provider_testExtensionFromPath | ( | ) | [static] |
Definition at line 186 of file FileBackendTest.php.
References array().
Definition at line 1099 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 1308 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 1044 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 1167 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 1233 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 91 of file FileBackendTest.php.
References array().
static FileBackendTest::provider_testMove | ( | ) | [static] |
Definition at line 473 of file FileBackendTest.php.
References $source, array(), and baseStorePath().
Definition at line 165 of file FileBackendTest.php.
References array().
Definition at line 1332 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 115 of file FileBackendTest.php.
References array().
static FileBackendTest::provider_testStore | ( | ) | [static] |
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().
Definition at line 2155 of file FileBackendTest.php.
References $file, array(), as, and deleteFiles().
Referenced by testConcatenate(), testCopy(), testCreate(), testDelete(), testDescribe(), testDoOperations(), testDoOperationsFailing(), testDoOperationsPipeline(), testDoQuickOperations(), testGetDirectoryList(), testGetFileContents(), testGetFileHttpUrl(), testGetFileList(), testGetFileStat(), testGetLocalCopy(), testGetLocalCopyAndReference404(), testGetLocalReference(), testMove(), testPrepareAndClean(), testRecursiveClean(), and testStore().
FileBackendTest::testConcatenate | ( | $ | op, |
$ | srcs, | ||
$ | srcsContent, | ||
$ | alreadyExists, | ||
$ | okStatus | ||
) |
provider_testConcatenate
Definition at line 852 of file FileBackendTest.php.
References doTestConcatenate(), file, and tearDownFiles().
FileBackendTest::testCopy | ( | $ | op | ) |
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().
Definition at line 1424 of file FileBackendTest.php.
References doTestDoOperations(), and tearDownFiles().
Definition at line 1610 of file FileBackendTest.php.
References doTestDoOperationsFailing(), and tearDownFiles().
Definition at line 1511 of file FileBackendTest.php.
References doTestDoOperationsPipeline(), and tearDownFiles().
Definition at line 801 of file FileBackendTest.php.
References doTestDoQuickOperations(), and tearDownFiles().
FileBackendTest::testExtensionFromPath | ( | $ | path, |
$ | res | ||
) |
provider_testExtensionFromPath
Definition at line 181 of file FileBackendTest.php.
References $path, $res, and FileBackend\extensionFromPath().
Definition at line 1840 of file FileBackendTest.php.
References doTestGetDirectoryList(), and tearDownFiles().
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().
Definition at line 1684 of file FileBackendTest.php.
References doTestGetFileList(), 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().
Definition at line 1249 of file FileBackendTest.php.
References doTestGetLocalCopyAndReference404(), 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().
FileBackendTest::testMove | ( | $ | op | ) |
provider_testMove
Definition at line 404 of file FileBackendTest.php.
References doTestMove(), and tearDownFiles().
FileBackendTest::testNormalizeStoragePath | ( | $ | path, |
$ | res | ||
) |
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().
Definition at line 1368 of file FileBackendTest.php.
References doTestRecursiveClean(), and tearDownFiles().
FileBackendTest::testSplitStoragePath | ( | $ | path, |
$ | res | ||
) |
provider_testSplitStoragePath
Definition at line 110 of file FileBackendTest.php.
References $path, $res, and FileBackend\splitStoragePath().
FileBackendTest::testStore | ( | $ | op | ) |
provider_testStore
Definition at line 198 of file FileBackendTest.php.
References doTestStore(), file, and tearDownFiles().
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.