MediaWiki REL1_31
|
FileRepo FileBackend medium. More...
Public Member Functions | |
assertBackendPathsConsistent (array $paths) | |
assertGoodStatus (StatusValue $status, $msg) | |
doTestGetLocalCopyAndReference404 () | |
tearDownFiles () | |
testAsyncWrites () | |
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 | |
testGetContentType ( $mimeCallback, $mimeFromString) | |
provider_testGetContentType | |
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 | |
testReadAffinity () | |
testRecursiveClean () | |
testSanitizeOpHeaders () | |
testSplitStoragePath ( $path, $res) | |
provider_testSplitStoragePath | |
testStore ( $op) | |
provider_testStore | |
testStreamFile ( $path, $content, $alreadyExists) | |
provider_testGetFileStat | |
testStreamFileRange () | |
Public Member Functions inherited from MediaWikiTestCase | |
__construct ( $name=null, array $data=[], $dataName='') | |
__destruct () | |
addDBData () | |
Stub. | |
addDBDataOnce () | |
Stub. | |
dbPrefix () | |
getCliArg ( $offset) | |
hideDeprecated ( $function) | |
Don't throw a warning if $function is deprecated and called later. | |
needsDB () | |
run (PHPUnit_Framework_TestResult $result=null) | |
setCliArg ( $offset, $value) | |
setContentLang ( $lang) | |
setGroupPermissions ( $newPerms, $newKey=null, $newValue=null) | |
Alters $wgGroupPermissions for the duration of the test. | |
setupAllTestDBs () | |
Set up all test DBs. | |
setUserLang ( $lang) | |
testMediaWikiTestCaseParentSetupCalled () | |
Make sure MediaWikiTestCase extending classes have called their parent setUp method. | |
usesTemporaryTables () | |
Static Public Member Functions | |
static | provider_normalizeStoragePath () |
static | provider_testConcatenate () |
static | provider_testCopy () |
static | provider_testCreate () |
provider_testCreate | |
static | provider_testDelete () |
static | provider_testDescribe () |
static | provider_testExtensionFromPath () |
static | provider_testGetContentType () |
static | provider_testGetFileContents () |
static | provider_testGetFileHttpUrl () |
static | provider_testGetFileStat () |
static | provider_testGetLocalCopy () |
static | provider_testGetLocalReference () |
static | provider_testIsStoragePath () |
static | provider_testMove () |
static | provider_testParentStoragePath () |
static | provider_testPrepareAndClean () |
static | provider_testSplitStoragePath () |
static | provider_testStore () |
static | provider_testStreamFile () |
Static Public Member Functions inherited from MediaWikiTestCase | |
static | getMutableTestUser ( $groups=[]) |
Convenience method for getting a mutable test user. | |
static | getTestSysop () |
Convenience method for getting an immutable admin test user. | |
static | getTestUser ( $groups=[]) |
Convenience method for getting an immutable test user. | |
static | listTables (IMaintainableDatabase $db) |
static | prepareServices (Config $bootstrapConfig) |
Prepare service configuration for unit testing. | |
static | setUpBeforeClass () |
static | setupTestDB (Database $db, $prefix) |
Creates an empty skeleton of the wiki database by cloning its structure to equivalent tables using the given $prefix. | |
static | teardownTestDB () |
Restores MediaWiki to using the table set (table prefix) it was using before setupTestDB() was called. | |
static | wfResetOutputBuffersBarrier ( $buffer) |
Used as a marker to prevent wfResetOutputBuffers from breaking PHPUnit. | |
Public Attributes | |
FSFileBackend | $singleBackend |
Public Attributes inherited from MediaWikiTestCase | |
const | DB_PREFIX = 'unittest_' |
Table name prefixes. | |
const | ORA_DB_PREFIX = 'ut_' |
Protected Member Functions | |
setUp () | |
Protected Member Functions inherited from MediaWikiTestCase | |
addTmpFiles ( $files) | |
arrayWrap (array $elements) | |
Utility method taking an array of elements and wrapping each element in its own array. | |
assertArrayEquals (array $expected, array $actual, $ordered=false, $named=false) | |
Assert that two arrays are equal. | |
assertFileContains ( $fileName, $actualData, $createIfMissing=true, $msg='') | |
Check whether file contains given data. | |
assertHTMLEquals ( $expected, $actual, $msg='') | |
Put each HTML element on its own line and then equals() the results. | |
assertSelect ( $table, $fields, $condition, array $expectedRows, array $options=[], array $join_conds=[]) | |
Asserts that the given database query yields the rows given by $expectedRows. | |
assertType ( $type, $actual, $message='') | |
Asserts the type of the provided value. | |
assertTypeOrValue ( $type, $actual, $value=false, $message='') | |
Asserts that the provided variable is of the specified internal type or equals the $value argument. | |
checkDbIsSupported () | |
checkPHPExtension ( $extName) | |
Check if $extName is a loaded PHP extension, will skip the test whenever it is not loaded. | |
getDefaultWikitextNS () | |
Returns the ID of a namespace that defaults to Wikitext. | |
getNewTempDirectory () | |
obtains a new temporary directory | |
getNewTempFile () | |
Obtains a new temporary file name. | |
getSchemaOverrides (IMaintainableDatabase $db) | |
Stub. | |
insertPage ( $pageName, $text='Sample page for unit test.', $namespace=null) | |
Insert a new page. | |
isWikitextNS ( $ns) | |
Returns true if the given namespace defaults to Wikitext according to $wgNamespaceContentModels. | |
markTestSkippedIfNoDiff3 () | |
Check, if $wgDiff3 is set and ready to merge Will mark the calling test as skipped, if not ready. | |
mergeMwGlobalArrayValue ( $name, $values) | |
Merges the given values into a MW global array variable. | |
objectAssociativeSort (array &$array) | |
Does an associative sort that works for objects. | |
overrideMwServices (Config $configOverrides=null, array $services=[]) | |
Stashes the global instance of MediaWikiServices, and installs a new one, allowing test cases to override settings and services. | |
setLogger ( $channel, LoggerInterface $logger) | |
Sets the logger for a specified channel, for the duration of the test. | |
setMwGlobals ( $pairs, $value=null) | |
Sets a global, maintaining a stashed version of the previous global to be restored in tearDown. | |
setService ( $name, $object) | |
Sets a service, maintaining a stashed version of the previous service to be restored in tearDown. | |
setTemporaryHook ( $hookName, $handler) | |
Create a temporary hook handler which will be reset by tearDown. | |
stashMwGlobals ( $globalKeys) | |
Stashes the global, will be restored in tearDown() | |
tearDown () | |
Private Member Functions | |
assertHasHeaders (array $headers, array $attr) | |
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) | |
doTestStreamFile ( $path, $content) | |
doTestStreamFileRange () | |
listToArray ( $iter) | |
prepare (array $params) | |
Static Private Member Functions | |
static | baseStorePath () |
Private Attributes | |
FileBackend | $backend |
FileBackendMultiWrite | $multiBackend |
Static Private Attributes | |
static | $backendToUse |
Additional Inherited Members | |
Static Public Attributes inherited from MediaWikiTestCase | |
static TestUser[] | $users |
Static Protected Member Functions inherited from MediaWikiTestCase | |
static | getExternalStoreDatabaseConnections () |
Gets master database connections for all of the ExternalStoreDB stores configured in $wgDefaultExternalStore. | |
static | isUsingExternalStoreDB () |
Check whether ExternalStoreDB is being used. | |
static | resetGlobalServices (Config $bootstrapConfig=null) |
Reset global services, and install testing environment. | |
static | setupDatabaseWithTestPrefix (IMaintainableDatabase $db, $prefix) |
Setups a database with the given prefix. | |
static | setupExternalStoreTestDBs ( $testPrefix) |
Clones the External Store database(s) for testing. | |
static | stripStringKeys (&$r) |
Utility function for eliminating all string keys from an array. | |
Protected Attributes inherited from MediaWikiTestCase | |
Database | $db |
Primary database. | |
array | $supportedDBs |
array | $tablesUsed = [] |
FileRepo FileBackend medium.
CopyFileOp CreateFileOp DeleteFileOp DescribeFileOp FSFile FSFileBackend FSFileBackendDirList FSFileBackendFileList FSFileBackendList FSFileOpHandle FileBackendDBRepoWrapper FileBackendError FileBackendGroup FileBackendMultiWrite FileBackendStore FileBackendStoreOpHandle FileBackendStoreShardDirIterator FileBackendStoreShardFileIterator FileBackendStoreShardListIterator FileJournal FileOp FileOpBatch HTTPFileStreamer LockManagerGroup MemoryFileBackend MoveFileOp MySqlLockManager NullFileJournal NullFileOp StoreFileOp TempFSFile
FSLockManager LockManager NullLockManager
Definition at line 48 of file FileBackendTest.php.
FileBackendTest::assertBackendPathsConsistent | ( | array | $paths | ) |
Definition at line 2631 of file FileBackendTest.php.
References assertGoodStatus().
Referenced by doTestCopy(), doTestCreate(), doTestDelete(), doTestDescribe(), doTestMove(), and doTestStore().
FileBackendTest::assertGoodStatus | ( | StatusValue | $status, |
$msg ) |
Definition at line 2638 of file FileBackendTest.php.
Referenced by assertBackendPathsConsistent(), doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), doTestDescribe(), doTestDoOperations(), doTestDoOperationsPipeline(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileContents(), doTestGetFileHttpUrl(), doTestGetFileList(), doTestGetFileStat(), doTestGetLocalCopy(), doTestGetLocalReference(), doTestMove(), doTestPrepareAndClean(), doTestRecursiveClean(), doTestStore(), doTestStreamFile(), and doTestStreamFileRange().
|
private |
Definition at line 715 of file FileBackendTest.php.
Referenced by doTestDescribe().
|
private |
Definition at line 126 of file FileBackendTest.php.
Referenced by doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), doTestDescribe(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileContents(), doTestGetFileHttpUrl(), doTestGetFileList(), doTestGetFileStat(), doTestGetLocalCopy(), doTestGetLocalCopyAndReference404(), doTestGetLocalReference(), doTestLockCalls(), doTestMove(), doTestPrepareAndClean(), doTestRecursiveClean(), doTestStore(), doTestStreamFile(), and doTestStreamFileRange().
|
staticprivate |
Definition at line 122 of file FileBackendTest.php.
Referenced by deleteFiles(), doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileList(), doTestGetLocalCopyAndReference404(), doTestRecursiveClean(), doTestStreamFileRange(), provider_testConcatenate(), provider_testCopy(), provider_testCreate(), provider_testDelete(), provider_testDescribe(), provider_testGetFileContents(), provider_testGetFileHttpUrl(), provider_testGetFileStat(), provider_testGetLocalCopy(), provider_testGetLocalReference(), provider_testMove(), provider_testPrepareAndClean(), provider_testStore(), and provider_testStreamFile().
|
private |
Definition at line 2605 of file FileBackendTest.php.
References $params.
Referenced by doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), doTestGetFileStat(), doTestStreamFile(), and doTestStreamFileRange().
|
private |
Definition at line 2618 of file FileBackendTest.php.
References $base, and baseStorePath().
Referenced by tearDownFiles().
|
private |
Definition at line 970 of file FileBackendTest.php.
References $params, $source, assertGoodStatus(), backendClass(), MediaWikiTestCase\getNewTempFile(), and prepare().
Referenced by testConcatenate().
|
private |
Definition at line 334 of file FileBackendTest.php.
References $source, assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testCopy().
|
private |
Definition at line 766 of file FileBackendTest.php.
References assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testCreate().
|
private |
Definition at line 575 of file FileBackendTest.php.
References $source, assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testDelete().
|
private |
Definition at line 666 of file FileBackendTest.php.
References $source, assertBackendPathsConsistent(), assertGoodStatus(), assertHasHeaders(), FileBackend\ATTR_HEADERS, backendClass(), and prepare().
Referenced by testDescribe().
|
private |
Definition at line 1696 of file FileBackendTest.php.
References $base, assertGoodStatus(), baseStorePath(), create(), and prepare().
Referenced by testDoOperations().
|
private |
Definition at line 1879 of file FileBackendTest.php.
References $base, baseStorePath(), create(), and prepare().
Referenced by testDoOperationsFailing().
|
private |
Definition at line 1784 of file FileBackendTest.php.
References $base, MediaWikiTestCase\addTmpFiles(), assertGoodStatus(), baseStorePath(), create(), TempFSFile\factory(), prepare(), and wfTempDir().
Referenced by testDoOperationsPipeline().
|
private |
Definition at line 883 of file FileBackendTest.php.
References $base, $path, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testDoQuickOperations().
|
private |
Definition at line 2128 of file FileBackendTest.php.
References $base, assertGoodStatus(), backendClass(), baseStorePath(), listToArray(), and prepare().
Referenced by testGetDirectoryList().
|
private |
Definition at line 1269 of file FileBackendTest.php.
References $source, array(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetFileContents().
|
private |
Definition at line 1529 of file FileBackendTest.php.
References $source, assertGoodStatus(), backendClass(), prepare(), and Http\request().
Referenced by testGetFileHttpUrl().
|
private |
Definition at line 1953 of file FileBackendTest.php.
References $base, assertGoodStatus(), backendClass(), baseStorePath(), listToArray(), and prepare().
Referenced by testGetFileList().
|
private |
Definition at line 1096 of file FileBackendTest.php.
References $time, assertGoodStatus(), backendClass(), create(), prepare(), and wfTimestamp().
Referenced by testGetFileStat().
|
private |
Definition at line 1340 of file FileBackendTest.php.
References $source, MediaWikiTestCase\$tmpFiles, array(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetLocalCopy().
FileBackendTest::doTestGetLocalCopyAndReference404 | ( | ) |
Definition at line 1500 of file FileBackendTest.php.
References $base, backendClass(), and baseStorePath().
Referenced by testGetLocalCopyAndReference404().
|
private |
Definition at line 1425 of file FileBackendTest.php.
References $source, MediaWikiTestCase\$tmpFiles, array(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetLocalReference().
|
private |
Definition at line 2334 of file FileBackendTest.php.
References backendClass(), and ScopedLock\release().
Referenced by testLockCalls().
|
private |
Definition at line 454 of file FileBackendTest.php.
References $source, assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testMove().
|
private |
Definition at line 1582 of file FileBackendTest.php.
References assertGoodStatus(), backendClass(), and prepare().
Referenced by testPrepareAndClean().
|
private |
Definition at line 1640 of file FileBackendTest.php.
References $base, $dirs, assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testRecursiveClean().
|
private |
Definition at line 262 of file FileBackendTest.php.
References $source, assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), FSFile\getPropsFromPath(), and prepare().
Referenced by testStore().
|
private |
Definition at line 1171 of file FileBackendTest.php.
References assertGoodStatus(), backendClass(), create(), and prepare().
Referenced by testStreamFile().
|
private |
Definition at line 1219 of file FileBackendTest.php.
References $base, assertGoodStatus(), backendClass(), baseStorePath(), create(), and prepare().
Referenced by testStreamFileRange().
|
private |
Definition at line 2595 of file FileBackendTest.php.
Referenced by doTestGetDirectoryList(), and doTestGetFileList().
|
private |
Definition at line 2600 of file FileBackendTest.php.
References $params.
Referenced by doTestConcatenate(), doTestCopy(), doTestCreate(), doTestDelete(), doTestDescribe(), doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), doTestDoQuickOperations(), doTestGetDirectoryList(), doTestGetFileContents(), doTestGetFileHttpUrl(), doTestGetFileList(), doTestGetFileStat(), doTestGetLocalCopy(), doTestGetLocalReference(), doTestMove(), doTestPrepareAndClean(), doTestRecursiveClean(), doTestStore(), doTestStreamFile(), and doTestStreamFileRange().
|
static |
Definition at line 186 of file FileBackendTest.php.
|
static |
Definition at line 1033 of file FileBackendTest.php.
References $params, and baseStorePath().
|
static |
Definition at line 391 of file FileBackendTest.php.
References $source, and baseStorePath().
|
static |
|
static |
Definition at line 615 of file FileBackendTest.php.
References $source, and baseStorePath().
|
static |
Definition at line 729 of file FileBackendTest.php.
References $source, and baseStorePath().
|
static |
Definition at line 236 of file FileBackendTest.php.
|
static |
Definition at line 2459 of file FileBackendTest.php.
References false, FileBackendGroup\singleton(), and true.
|
static |
Definition at line 1310 of file FileBackendTest.php.
References $base, and baseStorePath().
|
static |
Definition at line 1547 of file FileBackendTest.php.
References $base, and baseStorePath().
|
static |
Definition at line 1145 of file FileBackendTest.php.
References $base, baseStorePath(), false, and true.
|
static |
Definition at line 1394 of file FileBackendTest.php.
References $base, and baseStorePath().
|
static |
Definition at line 1472 of file FileBackendTest.php.
References $base, and baseStorePath().
|
static |
Definition at line 138 of file FileBackendTest.php.
|
static |
Definition at line 512 of file FileBackendTest.php.
References $source, and baseStorePath().
|
static |
Definition at line 215 of file FileBackendTest.php.
|
static |
Definition at line 1571 of file FileBackendTest.php.
References $base, baseStorePath(), and true.
|
static |
Definition at line 162 of file FileBackendTest.php.
|
static |
Definition at line 300 of file FileBackendTest.php.
References baseStorePath(), TempFSFile\factory(), and wfTempDir().
|
static |
Definition at line 1197 of file FileBackendTest.php.
References $base, and baseStorePath().
|
protected |
Reimplemented from MediaWikiTestCase.
Definition at line 58 of file FileBackendTest.php.
References $backendToUse, $wgFileBackends, FileJournal\factory(), MediaWikiTestCase\getCliArg(), MediaWikiTestCase\getNewTempDirectory(), LockManagerGroup\singleton(), wfRandomString(), and wfWikiID().
FileBackendTest::tearDownFiles | ( | ) |
Definition at line 2611 of file FileBackendTest.php.
References deleteFiles().
Referenced by testConcatenate(), testCopy(), testCreate(), testDelete(), testDescribe(), testDoOperations(), testDoOperationsFailing(), testDoOperationsPipeline(), testDoQuickOperations(), testGetDirectoryList(), testGetFileContents(), testGetFileHttpUrl(), testGetFileList(), testGetFileStat(), testGetLocalCopy(), testGetLocalCopyAndReference404(), testGetLocalReference(), testMove(), testPrepareAndClean(), testRecursiveClean(), testStore(), testStreamFile(), and testStreamFileRange().
FileBackendTest::testAsyncWrites | ( | ) |
Definition at line 2516 of file FileBackendTest.php.
References MediaWikiTestCase\setMwGlobals(), and wfWikiID().
FileBackendTest::testConcatenate | ( | $op, | |
$srcs, | |||
$srcsContent, | |||
$alreadyExists, | |||
$okStatus ) |
provider_testConcatenate
Definition at line 958 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestConcatenate(), and tearDownFiles().
FileBackendTest::testCopy | ( | $op | ) |
provider_testCopy
Definition at line 322 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestCopy(), and tearDownFiles().
FileBackendTest::testCreate | ( | $op, | |
$alreadyExists, | |||
$okStatus, | |||
$newSize ) |
provider_testCreate
Definition at line 754 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestCreate(), and tearDownFiles().
FileBackendTest::testDelete | ( | $op, | |
$withSource, | |||
$okStatus ) |
provider_testDelete
Definition at line 563 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestDelete(), and tearDownFiles().
FileBackendTest::testDescribe | ( | $op, | |
$withSource, | |||
$okStatus ) |
provider_testDescribe
Definition at line 654 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestDescribe(), and tearDownFiles().
FileBackendTest::testDoOperations | ( | ) |
Definition at line 1684 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestDoOperations(), and tearDownFiles().
FileBackendTest::testDoOperationsFailing | ( | ) |
Definition at line 1867 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestDoOperationsFailing(), and tearDownFiles().
FileBackendTest::testDoOperationsPipeline | ( | ) |
Definition at line 1771 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestDoOperationsPipeline(), and tearDownFiles().
FileBackendTest::testDoQuickOperations | ( | ) |
Definition at line 873 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestDoQuickOperations(), and tearDownFiles().
FileBackendTest::testExtensionFromPath | ( | $path, | |
$res ) |
provider_testExtensionFromPath
Definition at line 231 of file FileBackendTest.php.
References $res, and FileBackend\extensionFromPath().
FileBackendTest::testGetContentType | ( | $mimeCallback, | |
$mimeFromString ) |
FileBackendTest::testGetDirectoryList | ( | ) |
Definition at line 2116 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestGetDirectoryList(), and tearDownFiles().
FileBackendTest::testGetFileContents | ( | $source, | |
$content ) |
provider_testGetFileContents
Definition at line 1257 of file FileBackendTest.php.
References $multiBackend, $singleBackend, $source, doTestGetFileContents(), and tearDownFiles().
FileBackendTest::testGetFileHttpUrl | ( | $source, | |
$content ) |
provider_testGetFileHttpUrl
Definition at line 1517 of file FileBackendTest.php.
References $multiBackend, $singleBackend, $source, doTestGetFileHttpUrl(), and tearDownFiles().
FileBackendTest::testGetFileList | ( | ) |
Definition at line 1941 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestGetFileList(), and tearDownFiles().
FileBackendTest::testGetFileStat | ( | $path, | |
$content, | |||
$alreadyExists ) |
provider_testGetFileStat
Definition at line 1084 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestGetFileStat(), and tearDownFiles().
FileBackendTest::testGetLocalCopy | ( | $source, | |
$content ) |
provider_testGetLocalCopy
Definition at line 1328 of file FileBackendTest.php.
References $multiBackend, $singleBackend, $source, doTestGetLocalCopy(), and tearDownFiles().
FileBackendTest::testGetLocalCopyAndReference404 | ( | ) |
Definition at line 1488 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestGetLocalCopyAndReference404(), and tearDownFiles().
FileBackendTest::testGetLocalReference | ( | $source, | |
$content ) |
provider_testGetLocalReference
Definition at line 1413 of file FileBackendTest.php.
References $multiBackend, $singleBackend, $source, doTestGetLocalReference(), and tearDownFiles().
FileBackendTest::testIsStoragePath | ( | $path, | |
$isStorePath ) |
provider_testIsStoragePath
Definition at line 133 of file FileBackendTest.php.
References FileBackend\isStoragePath().
FileBackendTest::testLockCalls | ( | ) |
Definition at line 2329 of file FileBackendTest.php.
References $singleBackend, and doTestLockCalls().
FileBackendTest::testMove | ( | $op | ) |
provider_testMove
Definition at line 442 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestMove(), and tearDownFiles().
FileBackendTest::testNormalizeStoragePath | ( | $path, | |
$res ) |
provider_normalizeStoragePath
Definition at line 181 of file FileBackendTest.php.
References $res, and FileBackend\normalizeStoragePath().
FileBackendTest::testParentStoragePath | ( | $path, | |
$res ) |
provider_testParentStoragePath
Definition at line 210 of file FileBackendTest.php.
References $res, and FileBackend\parentStoragePath().
FileBackendTest::testPrepareAndClean | ( | $path, | |
$isOK ) |
provider_testPrepareAndClean
Definition at line 1561 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestPrepareAndClean(), and tearDownFiles().
FileBackendTest::testReadAffinity | ( | ) |
Definition at line 2466 of file FileBackendTest.php.
References wfWikiID().
FileBackendTest::testRecursiveClean | ( | ) |
Definition at line 1630 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestRecursiveClean(), and tearDownFiles().
FileBackendTest::testSanitizeOpHeaders | ( | ) |
Definition at line 2563 of file FileBackendTest.php.
References $input, FileBackend\makeContentDisposition(), wfRandomString(), and wfWikiID().
FileBackendTest::testSplitStoragePath | ( | $path, | |
$res ) |
provider_testSplitStoragePath
Definition at line 157 of file FileBackendTest.php.
References $res, and FileBackend\splitStoragePath().
FileBackendTest::testStore | ( | $op | ) |
provider_testStore
Definition at line 248 of file FileBackendTest.php.
References $multiBackend, $singleBackend, MediaWikiTestCase\addTmpFiles(), doTestStore(), and tearDownFiles().
FileBackendTest::testStreamFile | ( | $path, | |
$content, | |||
$alreadyExists ) |
provider_testGetFileStat
Definition at line 1159 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestStreamFile(), and tearDownFiles().
FileBackendTest::testStreamFileRange | ( | ) |
Definition at line 1207 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestStreamFileRange(), and tearDownFiles().
|
private |
Definition at line 51 of file FileBackendTest.php.
|
staticprivate |
Definition at line 56 of file FileBackendTest.php.
Referenced by setUp().
|
private |
Definition at line 53 of file FileBackendTest.php.
Referenced by testConcatenate(), testCopy(), testCreate(), testDelete(), testDescribe(), testDoOperations(), testDoOperationsFailing(), testDoOperationsPipeline(), testDoQuickOperations(), testGetDirectoryList(), testGetFileContents(), testGetFileHttpUrl(), testGetFileList(), testGetFileStat(), testGetLocalCopy(), testGetLocalCopyAndReference404(), testGetLocalReference(), testMove(), testPrepareAndClean(), testRecursiveClean(), testStore(), testStreamFile(), and testStreamFileRange().
FSFileBackend FileBackendTest::$singleBackend |
Definition at line 55 of file FileBackendTest.php.
Referenced by testConcatenate(), testCopy(), testCreate(), testDelete(), testDescribe(), testDoOperations(), testDoOperationsFailing(), testDoOperationsPipeline(), testDoQuickOperations(), testGetDirectoryList(), testGetFileContents(), testGetFileHttpUrl(), testGetFileList(), testGetFileStat(), testGetLocalCopy(), testGetLocalCopyAndReference404(), testGetLocalReference(), testLockCalls(), testMove(), testPrepareAndClean(), testRecursiveClean(), testStore(), testStreamFile(), and testStreamFileRange().