MediaWiki REL1_33
|
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. | |
copyTestData (IDatabase $source, IDatabase $target) | |
Copy test data from one database connection to another. | |
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 | getTestPrefixFor (IDatabase $db) |
static | getTestSysop () |
Convenience method for getting an immutable admin test user. | |
static | getTestUser ( $groups=[]) |
Convenience method for getting an immutable test user. | |
static | installMockMwServices (Config $configOverrides=null) |
Creates a new "mock" MediaWikiServices instance, and installs it. | |
static | listTables (IMaintainableDatabase $db) |
static | prepareServices (Config $bootstrapConfig) |
static | resetNonServiceCaches () |
Resets some non-service singleton instances and other static caches. | |
static | restoreMwServices () |
Restores the original, non-mock MediaWikiServices instance. | |
static | setUpBeforeClass () |
static | setupTestDB (IMaintainableDatabase $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 | |
addCoreDBData () | |
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=false, $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. | |
editPage ( $pageName, $text, $summary='', $defaultNs=NS_MAIN) | |
Edits or creates a page/revision. | |
ensureMockDatabaseConnection (IDatabase $db) | |
getDefaultWikitextNS () | |
Returns the ID of a namespace that defaults to Wikitext. | |
getExistingTestPage ( $title=null) | |
Returns a WikiPage representing an existing page. | |
getNewTempDirectory () | |
obtains a new temporary directory | |
getNewTempFile () | |
Obtains a new temporary file name. | |
getNonexistingTestPage ( $title=null) | |
Returns a WikiPage representing a non-existing page. | |
getSchemaOverrides (IMaintainableDatabase $db) | |
Stub. | |
insertPage ( $pageName, $text='Sample page for unit test.', $namespace=null, User $user=null) | |
Insert a new page. | |
isTestInDatabaseGroup () | |
isWikitextNS ( $ns) | |
Returns true if the given namespace defaults to Wikitext according to $wgNamespaceContentModels. | |
markTestSkippedIfDbType ( $type) | |
Skip the test if using the specified database type. | |
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. | |
revisionDelete ( $rev, array $value=[Revision::DELETED_TEXT=> 1], $comment='') | |
Revision-deletes a revision. | |
setIniSetting ( $name, $value) | |
Set an ini setting for the duration of the test. | |
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 () | |
truncateTable ( $tableName, IDatabase $db=null) | |
Empties the given table and resets any auto-increment counters. | |
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 | setupDatabaseWithTestPrefix (IMaintainableDatabase $db, $prefix=null) |
Setups a database with cloned tables using the given prefix. | |
static | setupExternalStoreTestDBs ( $testPrefix=null) |
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 2632 of file FileBackendTest.php.
References assertGoodStatus().
Referenced by doTestCopy(), doTestCreate(), doTestDelete(), doTestDescribe(), doTestMove(), and doTestStore().
FileBackendTest::assertGoodStatus | ( | StatusValue | $status, |
$msg ) |
Definition at line 2639 of file FileBackendTest.php.
References and(), and StatusValue\getErrors().
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().
Definition at line 715 of file FileBackendTest.php.
References and().
Referenced by doTestDescribe().
|
private |
Definition at line 126 of file FileBackendTest.php.
References and().
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 2606 of file FileBackendTest.php.
References $params.
Referenced by doTestDoOperations(), doTestDoOperationsFailing(), doTestDoOperationsPipeline(), doTestGetFileStat(), doTestStreamFile(), and doTestStreamFileRange().
|
private |
Definition at line 2619 of file FileBackendTest.php.
References $base, and(), and baseStorePath().
Referenced by tearDownFiles().
|
private |
Definition at line 970 of file FileBackendTest.php.
References $params, $source, and(), assertGoodStatus(), backendClass(), MediaWikiTestCase\getNewTempFile(), and prepare().
Referenced by testConcatenate().
|
private |
Definition at line 334 of file FileBackendTest.php.
References $source, and(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testCopy().
|
private |
Definition at line 766 of file FileBackendTest.php.
References and(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testCreate().
|
private |
Definition at line 575 of file FileBackendTest.php.
References $source, and(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testDelete().
|
private |
Definition at line 666 of file FileBackendTest.php.
References $source, and(), assertBackendPathsConsistent(), assertGoodStatus(), assertHasHeaders(), FileBackend\ATTR_HEADERS, backendClass(), and prepare().
Referenced by testDescribe().
|
private |
Definition at line 1696 of file FileBackendTest.php.
References $base, and(), assertGoodStatus(), baseStorePath(), create(), and prepare().
Referenced by testDoOperations().
|
private |
Definition at line 1879 of file FileBackendTest.php.
References $base, and(), baseStorePath(), create(), and prepare().
Referenced by testDoOperationsFailing().
|
private |
Definition at line 1784 of file FileBackendTest.php.
References $base, MediaWikiTestCase\addTmpFiles(), and(), assertGoodStatus(), baseStorePath(), create(), TempFSFile\factory(), prepare(), and wfTempDir().
Referenced by testDoOperationsPipeline().
|
private |
Definition at line 883 of file FileBackendTest.php.
References $base, $path, and(), assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testDoQuickOperations().
|
private |
Definition at line 2128 of file FileBackendTest.php.
References $base, $file, and(), assertGoodStatus(), backendClass(), baseStorePath(), listToArray(), and prepare().
Referenced by testGetDirectoryList().
|
private |
Definition at line 1269 of file FileBackendTest.php.
References $content, $data, $source, and(), array(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetFileContents().
|
private |
Definition at line 1529 of file FileBackendTest.php.
References $content, $data, $source, and(), assertGoodStatus(), backendClass(), prepare(), and Http\request().
Referenced by testGetFileHttpUrl().
|
private |
Definition at line 1953 of file FileBackendTest.php.
References $base, $file, and(), assertGoodStatus(), backendClass(), baseStorePath(), listToArray(), and prepare().
Referenced by testGetFileList().
|
private |
Definition at line 1096 of file FileBackendTest.php.
References $content, $time, and(), assertGoodStatus(), backendClass(), create(), prepare(), and wfTimestamp().
Referenced by testGetFileStat().
|
private |
Definition at line 1340 of file FileBackendTest.php.
References $content, $source, MediaWikiTestCase\$tmpFiles, and(), array(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetLocalCopy().
FileBackendTest::doTestGetLocalCopyAndReference404 | ( | ) |
Definition at line 1500 of file FileBackendTest.php.
References $base, and(), backendClass(), and baseStorePath().
Referenced by testGetLocalCopyAndReference404().
|
private |
Definition at line 1425 of file FileBackendTest.php.
References $content, $source, MediaWikiTestCase\$tmpFiles, and(), array(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testGetLocalReference().
|
private |
Definition at line 2334 of file FileBackendTest.php.
References $base, and(), backendClass(), and ScopedLock\release().
Referenced by testLockCalls().
|
private |
Definition at line 454 of file FileBackendTest.php.
References $source, and(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testMove().
|
private |
Definition at line 1582 of file FileBackendTest.php.
References and(), assertGoodStatus(), backendClass(), and prepare().
Referenced by testPrepareAndClean().
|
private |
Definition at line 1640 of file FileBackendTest.php.
References $base, and(), assertGoodStatus(), backendClass(), baseStorePath(), and prepare().
Referenced by testRecursiveClean().
|
private |
Definition at line 262 of file FileBackendTest.php.
References $source, and(), assertBackendPathsConsistent(), assertGoodStatus(), backendClass(), FSFile\getPropsFromPath(), and prepare().
Referenced by testStore().
|
private |
Definition at line 1171 of file FileBackendTest.php.
References $content, $data, and(), assertGoodStatus(), backendClass(), create(), and prepare().
Referenced by testStreamFile().
|
private |
Definition at line 1219 of file FileBackendTest.php.
References $base, $content, $data, and(), assertGoodStatus(), backendClass(), baseStorePath(), create(), and prepare().
Referenced by testStreamFileRange().
|
private |
Definition at line 2596 of file FileBackendTest.php.
References and().
Referenced by doTestGetDirectoryList(), and doTestGetFileList().
|
private |
Definition at line 2601 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.
References null.
|
static |
Definition at line 1033 of file FileBackendTest.php.
References $content, $params, and(), and baseStorePath().
|
static |
Definition at line 391 of file FileBackendTest.php.
References $source, and(), and baseStorePath().
|
static |
provider_testCreate
Definition at line 819 of file FileBackendTest.php.
References and(), and baseStorePath().
|
static |
Definition at line 615 of file FileBackendTest.php.
References $source, and(), and baseStorePath().
|
static |
Definition at line 729 of file FileBackendTest.php.
References $source, and(), and baseStorePath().
|
static |
Definition at line 236 of file FileBackendTest.php.
|
static |
Definition at line 2460 of file FileBackendTest.php.
References false, FileBackendGroup\singleton(), and true.
|
static |
Definition at line 1310 of file FileBackendTest.php.
References $base, and(), and baseStorePath().
|
static |
Definition at line 1547 of file FileBackendTest.php.
References $base, and(), and baseStorePath().
|
static |
Definition at line 1145 of file FileBackendTest.php.
References $base, and(), baseStorePath(), false, and true.
|
static |
Definition at line 1394 of file FileBackendTest.php.
References $base, and(), and baseStorePath().
|
static |
Definition at line 1472 of file FileBackendTest.php.
References $base, and(), and baseStorePath().
|
static |
Definition at line 138 of file FileBackendTest.php.
|
static |
Definition at line 512 of file FileBackendTest.php.
References $source, and(), and baseStorePath().
|
static |
Definition at line 215 of file FileBackendTest.php.
References null.
|
static |
Definition at line 1571 of file FileBackendTest.php.
References $base, baseStorePath(), and true.
|
static |
Definition at line 162 of file FileBackendTest.php.
References null.
|
static |
Definition at line 300 of file FileBackendTest.php.
References and(), baseStorePath(), TempFSFile\factory(), and wfTempDir().
|
static |
Definition at line 1197 of file FileBackendTest.php.
References $base, and(), baseStorePath(), and null.
|
protected |
Reimplemented from MediaWikiTestCase.
Definition at line 58 of file FileBackendTest.php.
References $backendToUse, $wgFileBackends, and(), FileJournal\factory(), MediaWikiTestCase\getCliArg(), MediaWikiTestCase\getNewTempDirectory(), LockManagerGroup\singleton(), wfRandomString(), and wfWikiID().
FileBackendTest::tearDownFiles | ( | ) |
Definition at line 2612 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 2517 of file FileBackendTest.php.
References and(), 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(), and FileBackend\extensionFromPath().
FileBackendTest::testGetContentType | ( | $mimeCallback, | |
$mimeFromString ) |
provider_testGetContentType
Definition at line 2434 of file FileBackendTest.php.
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 $content, $multiBackend, $singleBackend, $source, doTestGetFileContents(), and tearDownFiles().
FileBackendTest::testGetFileHttpUrl | ( | $source, | |
$content ) |
provider_testGetFileHttpUrl
Definition at line 1517 of file FileBackendTest.php.
References $content, $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 $content, $multiBackend, $singleBackend, doTestGetFileStat(), and tearDownFiles().
FileBackendTest::testGetLocalCopy | ( | $source, | |
$content ) |
provider_testGetLocalCopy
Definition at line 1328 of file FileBackendTest.php.
References $content, $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 $content, $multiBackend, $singleBackend, $source, doTestGetLocalReference(), and tearDownFiles().
FileBackendTest::testIsStoragePath | ( | $path, | |
$isStorePath ) |
provider_testIsStoragePath
Definition at line 133 of file FileBackendTest.php.
References and(), and 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(), and FileBackend\normalizeStoragePath().
FileBackendTest::testParentStoragePath | ( | $path, | |
$res ) |
provider_testParentStoragePath
Definition at line 210 of file FileBackendTest.php.
References $res, and(), 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 2467 of file FileBackendTest.php.
References and(), and wfWikiID().
FileBackendTest::testRecursiveClean | ( | ) |
Definition at line 1630 of file FileBackendTest.php.
References $multiBackend, $singleBackend, doTestRecursiveClean(), and tearDownFiles().
FileBackendTest::testSanitizeOpHeaders | ( | ) |
Definition at line 2564 of file FileBackendTest.php.
References $input, and(), FileBackend\makeContentDisposition(), wfRandomString(), and wfWikiID().
FileBackendTest::testSplitStoragePath | ( | $path, | |
$res ) |
provider_testSplitStoragePath
Definition at line 157 of file FileBackendTest.php.
References $res, and(), 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 $content, $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().