MediaWiki
REL1_20
|
FileRepo FileBackend medium More...
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 |
FileRepo FileBackend medium
Definition at line 8 of file FileBackendTest.php.
FileBackendTest::assertBackendPathsConsistent | ( | array $ | paths | ) |
Definition at line 1854 of file FileBackendTest.php.
References assertGoodStatus().
Referenced by doTestCopy(), doTestCreate(), doTestDelete(), doTestMove(), and doTestStore().
FileBackendTest::assertGoodStatus | ( | $ | status, |
$ | msg | ||
) |
Definition at line 1861 of file FileBackendTest.php.
Referenced by assertBackendPathsConsistent(), doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), doTestDoOperations(), doTestDoOperationsPipeline(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileContents(), 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(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileContents(), doTestGetFileList(), doTestGetFileStat(), doTestGetLocalCopy(), doTestGetLocalReference(), doTestLockCalls(), doTestMove(), doTestPrepareAndClean(), doTestRecursiveClean(), and doTestStore().
FileBackendTest::baseStorePath | ( | ) | [private] |
Definition at line 75 of file FileBackendTest.php.
Referenced by deleteFiles(), doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileList(), doTestRecursiveClean(), provider_testConcatenate(), provider_testCopy(), provider_testCreate(), provider_testDelete(), provider_testGetFileContents(), provider_testGetFileStat(), provider_testGetLocalCopy(), provider_testGetLocalReference(), provider_testMove(), provider_testPrepareAndClean(), and provider_testStore().
FileBackendTest::create | ( | array $ | params | ) | [private] |
Definition at line 1826 of file FileBackendTest.php.
Referenced by doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), doTestGetFileStat(), and doTestGetLocalReference().
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] |
Definition at line 297 of file FileBackendTest.php.
References $source, assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testCopy().
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] |
Definition at line 478 of file FileBackendTest.php.
References $source, assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testDelete().
FileBackendTest::doTestDoOperations | ( | ) | [private] |
Definition at line 1167 of file FileBackendTest.php.
References assertGoodStatus(), baseStorePath(), create(), prepare(), and wfBaseConvert().
Referenced by testDoOperations().
FileBackendTest::doTestDoOperationsFailing | ( | ) | [private] |
Definition at line 1351 of file FileBackendTest.php.
References baseStorePath(), create(), prepare(), and wfBaseConvert().
Referenced by testDoOperationsFailing().
FileBackendTest::doTestDoOperationsPipeline | ( | ) | [private] |
Definition at line 1253 of file FileBackendTest.php.
References assertGoodStatus(), baseStorePath(), create(), TempFSFile\factory(), prepare(), and wfBaseConvert().
Referenced by testDoOperationsPipeline().
FileBackendTest::doTestDoQuickOperations | ( | ) | [private] |
Definition at line 678 of file FileBackendTest.php.
References $file, $files, $path, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testDoQuickOperations().
FileBackendTest::doTestGetDirectoryList | ( | ) | [private] |
Definition at line 1581 of file FileBackendTest.php.
References $file, $files, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testGetDirectoryList().
FileBackendTest::doTestGetFileContents | ( | $ | source, |
$ | content | ||
) | [private] |
Definition at line 937 of file FileBackendTest.php.
References $source, assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetFileContents().
FileBackendTest::doTestGetFileList | ( | ) | [private] |
Definition at line 1425 of file FileBackendTest.php.
References $file, $files, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testGetFileList().
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().
FileBackendTest::doTestLockCalls | ( | ) | [private] |
Definition at line 1767 of file FileBackendTest.php.
References backendClass(), LockManager\LOCK_EX, and LockManager\LOCK_SH.
Referenced by testLockCalls().
FileBackendTest::doTestMove | ( | $ | op | ) | [private] |
Definition at line 387 of file FileBackendTest.php.
References $source, assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testMove().
FileBackendTest::doTestPrepareAndClean | ( | $ | path, |
$ | isOK | ||
) | [private] |
Definition at line 1075 of file FileBackendTest.php.
References $path, assertGoodStatus(), backendClass(), and prepare().
Referenced by testPrepareAndClean().
FileBackendTest::doTestRecursiveClean | ( | ) | [private] |
Definition at line 1111 of file FileBackendTest.php.
References $dir, $dirs, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testRecursiveClean().
FileBackendTest::doTestStore | ( | $ | op | ) | [private] |
Definition at line 213 of file FileBackendTest.php.
References $source, assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), FSFile\getPropsFromPath(), and prepare().
Referenced by testStore().
FileBackendTest::prepare | ( | array $ | params | ) | [private] |
Definition at line 1821 of file FileBackendTest.php.
Referenced by doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileContents(), doTestGetFileList(), doTestGetFileStat(), doTestGetLocalCopy(), doTestGetLocalReference(), doTestMove(), doTestPrepareAndClean(), doTestRecursiveClean(), and doTestStore().
Definition at line 139 of file FileBackendTest.php.
Definition at line 797 of file FileBackendTest.php.
References $params, baseStorePath(), and wfTempDir().
Definition at line 340 of file FileBackendTest.php.
References $source, and baseStorePath().
Definition at line 518 of file FileBackendTest.php.
References $source, and baseStorePath().
Definition at line 186 of file FileBackendTest.php.
Definition at line 957 of file FileBackendTest.php.
References baseStorePath().
Definition at line 911 of file FileBackendTest.php.
References baseStorePath().
Definition at line 1000 of file FileBackendTest.php.
References baseStorePath().
Definition at line 1042 of file FileBackendTest.php.
References baseStorePath().
Definition at line 91 of file FileBackendTest.php.
Definition at line 431 of file FileBackendTest.php.
References $source, and baseStorePath().
Definition at line 165 of file FileBackendTest.php.
Definition at line 1065 of file FileBackendTest.php.
References baseStorePath().
Definition at line 115 of file FileBackendTest.php.
Definition at line 251 of file FileBackendTest.php.
References baseStorePath(), and TempFSFile\factory().
Definition at line 13 of file FileBackendTest.php.
References $backendToUse, MediaWikiTestCase\getCliArg(), and wfTempDir().
Reimplemented from MediaWikiTestCase.
Definition at line 1865 of file FileBackendTest.php.
Definition at line 1831 of file FileBackendTest.php.
References $file, and deleteFiles().
Referenced by testConcatenate(), testCopy(), testCreate(), testDelete(), testDoOperations(), testDoOperationsFailing(), testDoOperationsPipeline(), testDoQuickOperations(), testGetDirectoryList(), testGetFileContents(), testGetFileList(), testGetFileStat(), testGetLocalCopy(), testGetLocalReference(), testMove(), testPrepareAndClean(), testRecursiveClean(), and testStore().
FileBackendTest::testConcatenate | ( | $ | op, |
$ | srcs, | ||
$ | srcsContent, | ||
$ | alreadyExists, | ||
$ | okStatus | ||
) |
provider_testConcatenate
Definition at line 719 of file FileBackendTest.php.
References doTestConcatenate(), 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 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().
Definition at line 1155 of file FileBackendTest.php.
References doTestDoOperations(), and tearDownFiles().
Definition at line 1339 of file FileBackendTest.php.
References doTestDoOperationsFailing(), and tearDownFiles().
Definition at line 1240 of file FileBackendTest.php.
References doTestDoOperationsPipeline(), and tearDownFiles().
Definition at line 668 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 1569 of file FileBackendTest.php.
References doTestGetDirectoryList(), and tearDownFiles().
FileBackendTest::testGetFileContents | ( | $ | source, |
$ | content | ||
) |
provider_testGetFileContents
Definition at line 925 of file FileBackendTest.php.
References $source, doTestGetFileContents(), and tearDownFiles().
Definition at line 1413 of file FileBackendTest.php.
References doTestGetFileList(), 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().
FileBackendTest::testMove | ( | $ | op | ) |
provider_testMove
Definition at line 375 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 1055 of file FileBackendTest.php.
References $path, doTestPrepareAndClean(), and tearDownFiles().
Definition at line 1101 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(), 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.