MediaWiki  1.33.0
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 More...
 
 testCopy ( $op)
 provider_testCopy More...
 
 testCreate ( $op, $alreadyExists, $okStatus, $newSize)
 provider_testCreate More...
 
 testDelete ( $op, $withSource, $okStatus)
 provider_testDelete More...
 
 testDescribe ( $op, $withSource, $okStatus)
 provider_testDescribe More...
 
 testDoOperations ()
 
 testDoOperationsFailing ()
 
 testDoOperationsPipeline ()
 
 testDoQuickOperations ()
 
 testExtensionFromPath ( $path, $res)
 provider_testExtensionFromPath More...
 
 testGetContentType ( $mimeCallback, $mimeFromString)
 provider_testGetContentType More...
 
 testGetDirectoryList ()
 
 testGetFileContents ( $source, $content)
 provider_testGetFileContents More...
 
 testGetFileHttpUrl ( $source, $content)
 provider_testGetFileHttpUrl More...
 
 testGetFileList ()
 
 testGetFileStat ( $path, $content, $alreadyExists)
 provider_testGetFileStat More...
 
 testGetLocalCopy ( $source, $content)
 provider_testGetLocalCopy More...
 
 testGetLocalCopyAndReference404 ()
 
 testGetLocalReference ( $source, $content)
 provider_testGetLocalReference More...
 
 testIsStoragePath ( $path, $isStorePath)
 provider_testIsStoragePath More...
 
 testLockCalls ()
 
 testMove ( $op)
 provider_testMove More...
 
 testNormalizeStoragePath ( $path, $res)
 provider_normalizeStoragePath More...
 
 testParentStoragePath ( $path, $res)
 provider_testParentStoragePath More...
 
 testPrepareAndClean ( $path, $isOK)
 provider_testPrepareAndClean More...
 
 testReadAffinity ()
 
 testRecursiveClean ()
 
 testSanitizeOpHeaders ()
 
 testSplitStoragePath ( $path, $res)
 provider_testSplitStoragePath More...
 
 testStore ( $op)
 provider_testStore More...
 
 testStreamFile ( $path, $content, $alreadyExists)
 provider_testGetFileStat More...
 
 testStreamFileRange ()
 
- Public Member Functions inherited from MediaWikiTestCase
 __construct ( $name=null, array $data=[], $dataName='')
 
 __destruct ()
 
 addDBData ()
 Stub. More...
 
 addDBDataOnce ()
 Stub. More...
 
 copyTestData (IDatabase $source, IDatabase $target)
 Copy test data from one database connection to another. More...
 
 dbPrefix ()
 
 getCliArg ( $offset)
 
 hideDeprecated ( $function)
 Don't throw a warning if $function is deprecated and called later. More...
 
 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. More...
 
 setupAllTestDBs ()
 Set up all test DBs. More...
 
 setUserLang ( $lang)
 
 testMediaWikiTestCaseParentSetupCalled ()
 Make sure MediaWikiTestCase extending classes have called their parent setUp method. More...
 
 usesTemporaryTables ()
 

Static Public Member Functions

static provider_normalizeStoragePath ()
 
static provider_testConcatenate ()
 
static provider_testCopy ()
 
static provider_testCreate ()
 provider_testCreate More...
 
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. More...
 
static getTestPrefixFor (IDatabase $db)
 
static getTestSysop ()
 Convenience method for getting an immutable admin test user. More...
 
static getTestUser ( $groups=[])
 Convenience method for getting an immutable test user. More...
 
static installMockMwServices (Config $configOverrides=null)
 Creates a new "mock" MediaWikiServices instance, and installs it. More...
 
static listTables (IMaintainableDatabase $db)
 
static prepareServices (Config $bootstrapConfig)
 
static resetNonServiceCaches ()
 Resets some non-service singleton instances and other static caches. More...
 
static restoreMwServices ()
 Restores the original, non-mock MediaWikiServices instance. More...
 
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. More...
 
static teardownTestDB ()
 Restores MediaWiki to using the table set (table prefix) it was using before setupTestDB() was called. More...
 
static wfResetOutputBuffersBarrier ( $buffer)
 Used as a marker to prevent wfResetOutputBuffers from breaking PHPUnit. More...
 

Public Attributes

FSFileBackend $singleBackend
 
- Public Attributes inherited from MediaWikiTestCase
const DB_PREFIX = 'unittest_'
 Table name prefixes. More...
 
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. More...
 
 assertArrayEquals (array $expected, array $actual, $ordered=false, $named=false)
 Assert that two arrays are equal. More...
 
 assertFileContains ( $fileName, $actualData, $createIfMissing=false, $msg='')
 Check whether file contains given data. More...
 
 assertHTMLEquals ( $expected, $actual, $msg='')
 Put each HTML element on its own line and then equals() the results. More...
 
 assertSelect ( $table, $fields, $condition, array $expectedRows, array $options=[], array $join_conds=[])
 Asserts that the given database query yields the rows given by $expectedRows. More...
 
 assertType ( $type, $actual, $message='')
 Asserts the type of the provided value. More...
 
 assertTypeOrValue ( $type, $actual, $value=false, $message='')
 Asserts that the provided variable is of the specified internal type or equals the $value argument. More...
 
 checkDbIsSupported ()
 
 checkPHPExtension ( $extName)
 Check if $extName is a loaded PHP extension, will skip the test whenever it is not loaded. More...
 
 editPage ( $pageName, $text, $summary='', $defaultNs=NS_MAIN)
 Edits or creates a page/revision. More...
 
 ensureMockDatabaseConnection (IDatabase $db)
 
 getDefaultWikitextNS ()
 Returns the ID of a namespace that defaults to Wikitext. More...
 
 getExistingTestPage ( $title=null)
 Returns a WikiPage representing an existing page. More...
 
 getNewTempDirectory ()
 obtains a new temporary directory More...
 
 getNewTempFile ()
 Obtains a new temporary file name. More...
 
 getNonexistingTestPage ( $title=null)
 Returns a WikiPage representing a non-existing page. More...
 
 getSchemaOverrides (IMaintainableDatabase $db)
 Stub. More...
 
 insertPage ( $pageName, $text='Sample page for unit test.', $namespace=null, User $user=null)
 Insert a new page. More...
 
 isTestInDatabaseGroup ()
 
 isWikitextNS ( $ns)
 Returns true if the given namespace defaults to Wikitext according to $wgNamespaceContentModels. More...
 
 markTestSkippedIfDbType ( $type)
 Skip the test if using the specified database type. More...
 
 markTestSkippedIfNoDiff3 ()
 Check, if $wgDiff3 is set and ready to merge Will mark the calling test as skipped, if not ready. More...
 
 mergeMwGlobalArrayValue ( $name, $values)
 Merges the given values into a MW global array variable. More...
 
 objectAssociativeSort (array &$array)
 Does an associative sort that works for objects. More...
 
 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. More...
 
 revisionDelete ( $rev, array $value=[Revision::DELETED_TEXT=> 1], $comment='')
 Revision-deletes a revision. More...
 
 setIniSetting ( $name, $value)
 Set an ini setting for the duration of the test. More...
 
 setLogger ( $channel, LoggerInterface $logger)
 Sets the logger for a specified channel, for the duration of the test. More...
 
 setMwGlobals ( $pairs, $value=null)
 Sets a global, maintaining a stashed version of the previous global to be restored in tearDown. More...
 
 setService ( $name, $object)
 Sets a service, maintaining a stashed version of the previous service to be restored in tearDown. More...
 
 setTemporaryHook ( $hookName, $handler)
 Create a temporary hook handler which will be reset by tearDown. More...
 
 stashMwGlobals ( $globalKeys)
 Stashes the global, will be restored in tearDown() More...
 
 tearDown ()
 
 truncateTable ( $tableName, IDatabase $db=null)
 Empties the given table and resets any auto-increment counters. More...
 

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. More...
 
static isUsingExternalStoreDB ()
 Check whether ExternalStoreDB is being used. More...
 
static setupDatabaseWithTestPrefix (IMaintainableDatabase $db, $prefix=null)
 Setups a database with cloned tables using the given prefix. More...
 
static setupExternalStoreTestDBs ( $testPrefix=null)
 Clones the External Store database(s) for testing. More...
 
static stripStringKeys (&$r)
 Utility function for eliminating all string keys from an array. More...
 
- Protected Attributes inherited from MediaWikiTestCase
Database $db
 Primary database. More...
 
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 as.

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, $file, as, 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

Definition at line 766 of file FileBackendTest.php.

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

Referenced by testCreate().

◆ doTestDelete()

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

◆ doTestDescribe()

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

◆ doTestDoOperations()

FileBackendTest::doTestDoOperations ( )
private

◆ doTestDoOperationsFailing()

FileBackendTest::doTestDoOperationsFailing ( )
private

Definition at line 1879 of file FileBackendTest.php.

References $base, baseStorePath(), captcha-old\count, create(), and prepare().

Referenced by testDoOperationsFailing().

◆ doTestDoOperationsPipeline()

FileBackendTest::doTestDoOperationsPipeline ( )
private

◆ doTestDoQuickOperations()

FileBackendTest::doTestDoQuickOperations ( )
private

◆ doTestGetDirectoryList()

FileBackendTest::doTestGetDirectoryList ( )
private

◆ doTestGetFileContents()

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

◆ 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, backendClass(), and baseStorePath().

Referenced by testGetLocalCopyAndReference404().

◆ doTestGetLocalReference()

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

◆ doTestLockCalls()

FileBackendTest::doTestLockCalls ( )
private

◆ doTestMove()

FileBackendTest::doTestMove (   $op)
private

◆ doTestPrepareAndClean()

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

Definition at line 1582 of file FileBackendTest.php.

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

Referenced by testPrepareAndClean().

◆ doTestRecursiveClean()

FileBackendTest::doTestRecursiveClean ( )
private

Definition at line 1640 of file FileBackendTest.php.

References $base, $dirs, as, 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, $path, 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.

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 baseStorePath().

◆ provider_testCopy()

static FileBackendTest::provider_testCopy ( )
static

Definition at line 391 of file FileBackendTest.php.

References $source, and baseStorePath().

◆ provider_testCreate()

static FileBackendTest::provider_testCreate ( )
static

provider_testCreate

Definition at line 819 of file FileBackendTest.php.

References baseStorePath().

◆ provider_testDelete()

static FileBackendTest::provider_testDelete ( )
static

Definition at line 615 of file FileBackendTest.php.

References $source, and baseStorePath().

◆ provider_testDescribe()

static FileBackendTest::provider_testDescribe ( )
static

Definition at line 729 of file FileBackendTest.php.

References $source, 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 baseStorePath().

◆ provider_testGetFileHttpUrl()

static FileBackendTest::provider_testGetFileHttpUrl ( )
static

Definition at line 1547 of file FileBackendTest.php.

References $base, and baseStorePath().

◆ provider_testGetFileStat()

static FileBackendTest::provider_testGetFileStat ( )
static

Definition at line 1145 of file FileBackendTest.php.

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

◆ provider_testGetLocalCopy()

static FileBackendTest::provider_testGetLocalCopy ( )
static

Definition at line 1394 of file FileBackendTest.php.

References $base, and baseStorePath().

◆ provider_testGetLocalReference()

static FileBackendTest::provider_testGetLocalReference ( )
static

Definition at line 1472 of file FileBackendTest.php.

References $base, 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 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 baseStorePath(), TempFSFile\factory(), and wfTempDir().

◆ provider_testStreamFile()

static FileBackendTest::provider_testStreamFile ( )
static

Definition at line 1197 of file FileBackendTest.php.

References $base, baseStorePath(), and null.

◆ setUp()

◆ tearDownFiles()

◆ testAsyncWrites()

FileBackendTest::testAsyncWrites ( )

◆ 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 $path, $res, and FileBackend\extensionFromPath().

◆ testGetContentType()

FileBackendTest::testGetContentType (   $mimeCallback,
  $mimeFromString 
)

provider_testGetContentType

Definition at line 2434 of file FileBackendTest.php.

References $IP, and class.

◆ 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, $path, $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 $path, 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 $path, $res, and FileBackend\normalizeStoragePath().

◆ testParentStoragePath()

FileBackendTest::testParentStoragePath (   $path,
  $res 
)

provider_testParentStoragePath

Definition at line 210 of file FileBackendTest.php.

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

◆ testPrepareAndClean()

FileBackendTest::testPrepareAndClean (   $path,
  $isOK 
)

provider_testPrepareAndClean

Definition at line 1561 of file FileBackendTest.php.

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

◆ testReadAffinity()

FileBackendTest::testReadAffinity ( )

Definition at line 2467 of file FileBackendTest.php.

References class, and wfWikiID().

◆ testRecursiveClean()

FileBackendTest::testRecursiveClean ( )

◆ testSanitizeOpHeaders()

FileBackendTest::testSanitizeOpHeaders ( )

◆ testSplitStoragePath()

FileBackendTest::testSplitStoragePath (   $path,
  $res 
)

provider_testSplitStoragePath

Definition at line 157 of file FileBackendTest.php.

References $path, $res, 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, $path, $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: