MediaWiki REL1_33
FileBackendTest Class Reference

FileRepo FileBackend medium. More...

Inheritance diagram for FileBackendTest:
Collaboration diagram for FileBackendTest:

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 = []
 

Detailed Description

Member Function Documentation

◆ assertBackendPathsConsistent()

FileBackendTest::assertBackendPathsConsistent ( array $paths)

◆ assertGoodStatus()

◆ assertHasHeaders()

FileBackendTest::assertHasHeaders ( array $headers,
array $attr )
private

Definition at line 715 of file FileBackendTest.php.

References and().

Referenced by doTestDescribe().

◆ backendClass()

◆ baseStorePath()

◆ create()

FileBackendTest::create ( array $params)
private

◆ deleteFiles()

FileBackendTest::deleteFiles ( $container)
private

Definition at line 2619 of file FileBackendTest.php.

References $base, and(), and baseStorePath().

Referenced by tearDownFiles().

◆ doTestConcatenate()

FileBackendTest::doTestConcatenate ( $params,
$srcs,
$srcsContent,
$alreadyExists,
$okStatus )
private

◆ doTestCopy()

FileBackendTest::doTestCopy ( $op)
private

◆ doTestCreate()

FileBackendTest::doTestCreate ( $op,
$alreadyExists,
$okStatus,
$newSize )
private

◆ doTestDelete()

FileBackendTest::doTestDelete ( $op,
$withSource,
$okStatus )
private

◆ doTestDescribe()

FileBackendTest::doTestDescribe ( $op,
$withSource,
$okStatus )
private

◆ doTestDoOperations()

FileBackendTest::doTestDoOperations ( )
private

Definition at line 1696 of file FileBackendTest.php.

References $base, and(), assertGoodStatus(), baseStorePath(), create(), and prepare().

Referenced by testDoOperations().

◆ doTestDoOperationsFailing()

FileBackendTest::doTestDoOperationsFailing ( )
private

Definition at line 1879 of file FileBackendTest.php.

References $base, and(), baseStorePath(), create(), and prepare().

Referenced by testDoOperationsFailing().

◆ doTestDoOperationsPipeline()

FileBackendTest::doTestDoOperationsPipeline ( )
private

◆ doTestDoQuickOperations()

FileBackendTest::doTestDoQuickOperations ( )
private

◆ doTestGetDirectoryList()

FileBackendTest::doTestGetDirectoryList ( )
private

◆ doTestGetFileContents()

FileBackendTest::doTestGetFileContents ( $source,
$content )
private

Definition at line 1269 of file FileBackendTest.php.

References $content, $data, $source, and(), array(), assertGoodStatus(), backendClass(), and prepare().

Referenced by testGetFileContents().

◆ doTestGetFileHttpUrl()

FileBackendTest::doTestGetFileHttpUrl ( $source,
$content )
private

◆ doTestGetFileList()

FileBackendTest::doTestGetFileList ( )
private

◆ doTestGetFileStat()

FileBackendTest::doTestGetFileStat ( $path,
$content,
$alreadyExists )
private

◆ doTestGetLocalCopy()

FileBackendTest::doTestGetLocalCopy ( $source,
$content )
private

◆ doTestGetLocalCopyAndReference404()

FileBackendTest::doTestGetLocalCopyAndReference404 ( )

Definition at line 1500 of file FileBackendTest.php.

References $base, and(), backendClass(), and baseStorePath().

Referenced by testGetLocalCopyAndReference404().

◆ doTestGetLocalReference()

FileBackendTest::doTestGetLocalReference ( $source,
$content )
private

◆ doTestLockCalls()

FileBackendTest::doTestLockCalls ( )
private

Definition at line 2334 of file FileBackendTest.php.

References $base, and(), backendClass(), and ScopedLock\release().

Referenced by testLockCalls().

◆ doTestMove()

FileBackendTest::doTestMove ( $op)
private

◆ doTestPrepareAndClean()

FileBackendTest::doTestPrepareAndClean ( $path,
$isOK )
private

Definition at line 1582 of file FileBackendTest.php.

References and(), assertGoodStatus(), backendClass(), and prepare().

Referenced by testPrepareAndClean().

◆ doTestRecursiveClean()

FileBackendTest::doTestRecursiveClean ( )
private

Definition at line 1640 of file FileBackendTest.php.

References $base, and(), assertGoodStatus(), backendClass(), baseStorePath(), and prepare().

Referenced by testRecursiveClean().

◆ doTestStore()

FileBackendTest::doTestStore ( $op)
private

◆ doTestStreamFile()

FileBackendTest::doTestStreamFile ( $path,
$content )
private

Definition at line 1171 of file FileBackendTest.php.

References $content, $data, and(), assertGoodStatus(), backendClass(), create(), and prepare().

Referenced by testStreamFile().

◆ doTestStreamFileRange()

FileBackendTest::doTestStreamFileRange ( )
private

◆ listToArray()

FileBackendTest::listToArray ( $iter)
private

Definition at line 2596 of file FileBackendTest.php.

References and().

Referenced by doTestGetDirectoryList(), and doTestGetFileList().

◆ prepare()

◆ provider_normalizeStoragePath()

static FileBackendTest::provider_normalizeStoragePath ( )
static

Definition at line 186 of file FileBackendTest.php.

References null.

◆ provider_testConcatenate()

static FileBackendTest::provider_testConcatenate ( )
static

Definition at line 1033 of file FileBackendTest.php.

References $content, $params, and(), and baseStorePath().

◆ provider_testCopy()

static FileBackendTest::provider_testCopy ( )
static

Definition at line 391 of file FileBackendTest.php.

References $source, and(), and baseStorePath().

◆ provider_testCreate()

static FileBackendTest::provider_testCreate ( )
static

provider_testCreate

Definition at line 819 of file FileBackendTest.php.

References and(), and baseStorePath().

◆ provider_testDelete()

static FileBackendTest::provider_testDelete ( )
static

Definition at line 615 of file FileBackendTest.php.

References $source, and(), and baseStorePath().

◆ provider_testDescribe()

static FileBackendTest::provider_testDescribe ( )
static

Definition at line 729 of file FileBackendTest.php.

References $source, and(), and baseStorePath().

◆ provider_testExtensionFromPath()

static FileBackendTest::provider_testExtensionFromPath ( )
static

Definition at line 236 of file FileBackendTest.php.

◆ provider_testGetContentType()

static FileBackendTest::provider_testGetContentType ( )
static

Definition at line 2460 of file FileBackendTest.php.

References false, FileBackendGroup\singleton(), and true.

◆ provider_testGetFileContents()

static FileBackendTest::provider_testGetFileContents ( )
static

Definition at line 1310 of file FileBackendTest.php.

References $base, and(), and baseStorePath().

◆ provider_testGetFileHttpUrl()

static FileBackendTest::provider_testGetFileHttpUrl ( )
static

Definition at line 1547 of file FileBackendTest.php.

References $base, and(), and baseStorePath().

◆ provider_testGetFileStat()

static FileBackendTest::provider_testGetFileStat ( )
static

Definition at line 1145 of file FileBackendTest.php.

References $base, and(), baseStorePath(), false, and true.

◆ provider_testGetLocalCopy()

static FileBackendTest::provider_testGetLocalCopy ( )
static

Definition at line 1394 of file FileBackendTest.php.

References $base, and(), and baseStorePath().

◆ provider_testGetLocalReference()

static FileBackendTest::provider_testGetLocalReference ( )
static

Definition at line 1472 of file FileBackendTest.php.

References $base, and(), and baseStorePath().

◆ provider_testIsStoragePath()

static FileBackendTest::provider_testIsStoragePath ( )
static

Definition at line 138 of file FileBackendTest.php.

References false, and true.

◆ provider_testMove()

static FileBackendTest::provider_testMove ( )
static

Definition at line 512 of file FileBackendTest.php.

References $source, and(), and baseStorePath().

◆ provider_testParentStoragePath()

static FileBackendTest::provider_testParentStoragePath ( )
static

Definition at line 215 of file FileBackendTest.php.

References null.

◆ provider_testPrepareAndClean()

static FileBackendTest::provider_testPrepareAndClean ( )
static

Definition at line 1571 of file FileBackendTest.php.

References $base, baseStorePath(), and true.

◆ provider_testSplitStoragePath()

static FileBackendTest::provider_testSplitStoragePath ( )
static

Definition at line 162 of file FileBackendTest.php.

References null.

◆ provider_testStore()

static FileBackendTest::provider_testStore ( )
static

Definition at line 300 of file FileBackendTest.php.

References and(), baseStorePath(), TempFSFile\factory(), and wfTempDir().

◆ provider_testStreamFile()

static FileBackendTest::provider_testStreamFile ( )
static

Definition at line 1197 of file FileBackendTest.php.

References $base, and(), baseStorePath(), and null.

◆ setUp()

◆ tearDownFiles()

◆ testAsyncWrites()

FileBackendTest::testAsyncWrites ( )

Definition at line 2517 of file FileBackendTest.php.

References and(), MediaWikiTestCase\setMwGlobals(), and wfWikiID().

◆ testConcatenate()

FileBackendTest::testConcatenate ( $op,
$srcs,
$srcsContent,
$alreadyExists,
$okStatus )

provider_testConcatenate

Definition at line 958 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestConcatenate(), and tearDownFiles().

◆ testCopy()

FileBackendTest::testCopy ( $op)

provider_testCopy

Definition at line 322 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestCopy(), and tearDownFiles().

◆ testCreate()

FileBackendTest::testCreate ( $op,
$alreadyExists,
$okStatus,
$newSize )

provider_testCreate

Definition at line 754 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestCreate(), and tearDownFiles().

◆ testDelete()

FileBackendTest::testDelete ( $op,
$withSource,
$okStatus )

provider_testDelete

Definition at line 563 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestDelete(), and tearDownFiles().

◆ testDescribe()

FileBackendTest::testDescribe ( $op,
$withSource,
$okStatus )

provider_testDescribe

Definition at line 654 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestDescribe(), and tearDownFiles().

◆ testDoOperations()

FileBackendTest::testDoOperations ( )

◆ testDoOperationsFailing()

FileBackendTest::testDoOperationsFailing ( )

◆ testDoOperationsPipeline()

FileBackendTest::testDoOperationsPipeline ( )

◆ testDoQuickOperations()

FileBackendTest::testDoQuickOperations ( )

◆ testExtensionFromPath()

FileBackendTest::testExtensionFromPath ( $path,
$res )

provider_testExtensionFromPath

Definition at line 231 of file FileBackendTest.php.

References $res, and(), and FileBackend\extensionFromPath().

◆ testGetContentType()

FileBackendTest::testGetContentType ( $mimeCallback,
$mimeFromString )

provider_testGetContentType

Definition at line 2434 of file FileBackendTest.php.

References $IP, and and().

◆ testGetDirectoryList()

FileBackendTest::testGetDirectoryList ( )

◆ testGetFileContents()

FileBackendTest::testGetFileContents ( $source,
$content )

provider_testGetFileContents

Definition at line 1257 of file FileBackendTest.php.

References $content, $multiBackend, $singleBackend, $source, doTestGetFileContents(), and tearDownFiles().

◆ testGetFileHttpUrl()

FileBackendTest::testGetFileHttpUrl ( $source,
$content )

provider_testGetFileHttpUrl

Definition at line 1517 of file FileBackendTest.php.

References $content, $multiBackend, $singleBackend, $source, doTestGetFileHttpUrl(), and tearDownFiles().

◆ testGetFileList()

FileBackendTest::testGetFileList ( )

◆ testGetFileStat()

FileBackendTest::testGetFileStat ( $path,
$content,
$alreadyExists )

provider_testGetFileStat

Definition at line 1084 of file FileBackendTest.php.

References $content, $multiBackend, $singleBackend, doTestGetFileStat(), and tearDownFiles().

◆ testGetLocalCopy()

FileBackendTest::testGetLocalCopy ( $source,
$content )

provider_testGetLocalCopy

Definition at line 1328 of file FileBackendTest.php.

References $content, $multiBackend, $singleBackend, $source, doTestGetLocalCopy(), and tearDownFiles().

◆ testGetLocalCopyAndReference404()

FileBackendTest::testGetLocalCopyAndReference404 ( )

◆ testGetLocalReference()

FileBackendTest::testGetLocalReference ( $source,
$content )

provider_testGetLocalReference

Definition at line 1413 of file FileBackendTest.php.

References $content, $multiBackend, $singleBackend, $source, doTestGetLocalReference(), and tearDownFiles().

◆ testIsStoragePath()

FileBackendTest::testIsStoragePath ( $path,
$isStorePath )

provider_testIsStoragePath

Definition at line 133 of file FileBackendTest.php.

References and(), and FileBackend\isStoragePath().

◆ testLockCalls()

FileBackendTest::testLockCalls ( )

Definition at line 2329 of file FileBackendTest.php.

References $singleBackend, and doTestLockCalls().

◆ testMove()

FileBackendTest::testMove ( $op)

provider_testMove

Definition at line 442 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestMove(), and tearDownFiles().

◆ testNormalizeStoragePath()

FileBackendTest::testNormalizeStoragePath ( $path,
$res )

provider_normalizeStoragePath

Definition at line 181 of file FileBackendTest.php.

References $res, and(), and FileBackend\normalizeStoragePath().

◆ testParentStoragePath()

FileBackendTest::testParentStoragePath ( $path,
$res )

provider_testParentStoragePath

Definition at line 210 of file FileBackendTest.php.

References $res, and(), and FileBackend\parentStoragePath().

◆ testPrepareAndClean()

FileBackendTest::testPrepareAndClean ( $path,
$isOK )

provider_testPrepareAndClean

Definition at line 1561 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestPrepareAndClean(), and tearDownFiles().

◆ testReadAffinity()

FileBackendTest::testReadAffinity ( )

Definition at line 2467 of file FileBackendTest.php.

References and(), and wfWikiID().

◆ testRecursiveClean()

FileBackendTest::testRecursiveClean ( )

◆ testSanitizeOpHeaders()

FileBackendTest::testSanitizeOpHeaders ( )

◆ testSplitStoragePath()

FileBackendTest::testSplitStoragePath ( $path,
$res )

provider_testSplitStoragePath

Definition at line 157 of file FileBackendTest.php.

References $res, and(), and FileBackend\splitStoragePath().

◆ testStore()

FileBackendTest::testStore ( $op)

provider_testStore

Definition at line 248 of file FileBackendTest.php.

References $multiBackend, $singleBackend, MediaWikiTestCase\addTmpFiles(), doTestStore(), and tearDownFiles().

◆ testStreamFile()

FileBackendTest::testStreamFile ( $path,
$content,
$alreadyExists )

provider_testGetFileStat

Definition at line 1159 of file FileBackendTest.php.

References $content, $multiBackend, $singleBackend, doTestStreamFile(), and tearDownFiles().

◆ testStreamFileRange()

FileBackendTest::testStreamFileRange ( )

Member Data Documentation

◆ $backend

FileBackend FileBackendTest::$backend
private

Definition at line 51 of file FileBackendTest.php.

◆ $backendToUse

FileBackendTest::$backendToUse
staticprivate

Definition at line 56 of file FileBackendTest.php.

Referenced by setUp().

◆ $multiBackend

◆ $singleBackend


The documentation for this class was generated from the following file: