MediaWiki
master
|
FileRepo FileBackend medium More...
FileRepo FileBackend medium
Definition at line 8 of file FileBackendTest.php.
Definition at line 2029 of file FileBackendTest.php.
References assertGoodStatus().
Referenced by doTestCopy(), doTestCreate(), doTestDelete(), doTestMove(), and doTestStore().
FileBackendTest::assertGoodStatus | ( | $ | status, |
$ | msg | ||
) |
Definition at line 2036 of file FileBackendTest.php.
References array().
Referenced by assertBackendPathsConsistent(), doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), 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(), 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_testGetFileContents(), provider_testGetFileHttpUrl(), provider_testGetFileStat(), provider_testGetLocalCopy(), provider_testGetLocalReference(), provider_testMove(), provider_testPrepareAndClean(), and provider_testStore().
FileBackendTest::create | ( | array $ | params | ) | [private] |
Definition at line 2002 of file FileBackendTest.php.
References array().
Referenced by doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), and doTestGetFileStat().
FileBackendTest::deleteFiles | ( | $ | container | ) | [private] |
Definition at line 2018 of file FileBackendTest.php.
References $file, array(), as, and baseStorePath().
Referenced by tearDownFiles().
FileBackendTest::doTestConcatenate | ( | $ | params, |
$ | srcs, | ||
$ | srcsContent, | ||
$ | alreadyExists, | ||
$ | okStatus | ||
) | [private] |
Definition at line 776 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 603 of file FileBackendTest.php.
References array(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testCreate().
FileBackendTest::doTestDelete | ( | $ | op, |
$ | withSource, | ||
$ | okStatus | ||
) | [private] |
Definition at line 520 of file FileBackendTest.php.
References $source, array(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testDelete().
FileBackendTest::doTestDoOperations | ( | ) | [private] |
Definition at line 1343 of file FileBackendTest.php.
References array(), assertGoodStatus(), baseStorePath(), create(), prepare(), and wfBaseConvert().
Referenced by testDoOperations().
FileBackendTest::doTestDoOperationsFailing | ( | ) | [private] |
Definition at line 1527 of file FileBackendTest.php.
References array(), baseStorePath(), create(), prepare(), and wfBaseConvert().
Referenced by testDoOperationsFailing().
FileBackendTest::doTestDoOperationsPipeline | ( | ) | [private] |
Definition at line 1429 of file FileBackendTest.php.
References array(), assertGoodStatus(), baseStorePath(), create(), TempFSFile\factory(), file, prepare(), and wfBaseConvert().
Referenced by testDoOperationsPipeline().
FileBackendTest::doTestDoQuickOperations | ( | ) | [private] |
Definition at line 720 of file FileBackendTest.php.
References $file, $files, $path, array(), as, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testDoQuickOperations().
FileBackendTest::doTestGetDirectoryList | ( | ) | [private] |
Definition at line 1757 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 979 of file FileBackendTest.php.
References $path, $source, array(), as, assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetFileContents().
FileBackendTest::doTestGetFileHttpUrl | ( | $ | source, |
$ | content | ||
) | [private] |
Definition at line 1199 of file FileBackendTest.php.
References $source, $url, array(), assertGoodStatus(), backendClass(), prepare(), and request.
Referenced by testGetFileHttpUrl().
FileBackendTest::doTestGetFileList | ( | ) | [private] |
Definition at line 1601 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 904 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 1038 of file FileBackendTest.php.
References $path, $source, array(), as, assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetLocalCopy().
Definition at line 1170 of file FileBackendTest.php.
References array(), backendClass(), and baseStorePath().
Referenced by testGetLocalCopyAndReference404().
FileBackendTest::doTestGetLocalReference | ( | $ | source, |
$ | content | ||
) | [private] |
Definition at line 1107 of file FileBackendTest.php.
References $path, $source, array(), as, assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetLocalReference().
FileBackendTest::doTestLockCalls | ( | ) | [private] |
Definition at line 1943 of file FileBackendTest.php.
References array(), backendClass(), LockManager\LOCK_EX, and LockManager\LOCK_SH.
Referenced by testLockCalls().
FileBackendTest::doTestMove | ( | $ | op | ) | [private] |
Definition at line 408 of file FileBackendTest.php.
References $source, array(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testMove().
FileBackendTest::doTestPrepareAndClean | ( | $ | path, |
$ | isOK | ||
) | [private] |
Definition at line 1251 of file FileBackendTest.php.
References $path, array(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testPrepareAndClean().
FileBackendTest::doTestRecursiveClean | ( | ) | [private] |
Definition at line 1287 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 1997 of file FileBackendTest.php.
Referenced by doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), 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 839 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 656 of file FileBackendTest.php.
References array(), and baseStorePath().
static FileBackendTest::provider_testDelete | ( | ) | [static] |
Definition at line 560 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 1008 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 1217 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 953 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 1076 of file FileBackendTest.php.
References array(), and baseStorePath().
Definition at line 1142 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 465 of file FileBackendTest.php.
References $source, array(), and baseStorePath().
Definition at line 165 of file FileBackendTest.php.
References array().
Definition at line 1241 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 2007 of file FileBackendTest.php.
References $file, array(), as, and deleteFiles().
Referenced by testConcatenate(), testCopy(), testCreate(), testDelete(), 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 761 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 591 of file FileBackendTest.php.
References doTestCreate(), and tearDownFiles().
FileBackendTest::testDelete | ( | $ | op, |
$ | withSource, | ||
$ | okStatus | ||
) |
provider_testDelete
Definition at line 508 of file FileBackendTest.php.
References doTestDelete(), and tearDownFiles().
Definition at line 1331 of file FileBackendTest.php.
References doTestDoOperations(), and tearDownFiles().
Definition at line 1515 of file FileBackendTest.php.
References doTestDoOperationsFailing(), and tearDownFiles().
Definition at line 1416 of file FileBackendTest.php.
References doTestDoOperationsPipeline(), and tearDownFiles().
Definition at line 710 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 1745 of file FileBackendTest.php.
References doTestGetDirectoryList(), and tearDownFiles().
FileBackendTest::testGetFileContents | ( | $ | source, |
$ | content | ||
) |
provider_testGetFileContents
Definition at line 967 of file FileBackendTest.php.
References $source, doTestGetFileContents(), and tearDownFiles().
FileBackendTest::testGetFileHttpUrl | ( | $ | source, |
$ | content | ||
) |
provider_testGetFileHttpUrl
Definition at line 1187 of file FileBackendTest.php.
References $source, doTestGetFileHttpUrl(), and tearDownFiles().
Definition at line 1589 of file FileBackendTest.php.
References doTestGetFileList(), and tearDownFiles().
FileBackendTest::testGetFileStat | ( | $ | path, |
$ | content, | ||
$ | alreadyExists | ||
) |
provider_testGetFileStat
Definition at line 892 of file FileBackendTest.php.
References $path, doTestGetFileStat(), and tearDownFiles().
FileBackendTest::testGetLocalCopy | ( | $ | source, |
$ | content | ||
) |
provider_testGetLocalCopy
Definition at line 1026 of file FileBackendTest.php.
References $source, doTestGetLocalCopy(), and tearDownFiles().
Definition at line 1158 of file FileBackendTest.php.
References doTestGetLocalCopyAndReference404(), and tearDownFiles().
FileBackendTest::testGetLocalReference | ( | $ | source, |
$ | content | ||
) |
provider_testGetLocalReference
Definition at line 1095 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 1938 of file FileBackendTest.php.
References doTestLockCalls().
FileBackendTest::testMove | ( | $ | op | ) |
provider_testMove
Definition at line 396 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 1231 of file FileBackendTest.php.
References $path, doTestPrepareAndClean(), and tearDownFiles().
Definition at line 1277 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.