TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ResourceFactoryTest Class Reference
Inheritance diagram for ResourceFactoryTest:
UnitTestCase BaseTestCase

Public Member Functions

 createStorageCollectionObjectCreatesCollectionWithCorrectArguments ()
 
 getDriverObjectAcceptsDriverClassName ()
 
 retrieveFileOrFolderObjectReturnsFileIfPathIsGiven ()
 
 findBestMatchingStorageByLocalPathReturnsDefaultStorageIfNoMatchIsFound (array $storageConfiguration, $path, $expectedStorageId)
 
 storageDetectionDataProvider ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $singletonInstances = []
 
 $subject
 
 $filesCreated = []
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for the factory of FAL

Definition at line 20 of file ResourceFactoryTest.php.

Member Function Documentation

createStorageCollectionObjectCreatesCollectionWithCorrectArguments ( )
Test:

Definition at line 58 of file ResourceFactoryTest.php.

References BaseTestCase\getUniqueId().

findBestMatchingStorageByLocalPathReturnsDefaultStorageIfNoMatchIsFound ( array  $storageConfiguration,
  $path,
  $expectedStorageId 
)
Parameters
array$storageConfiguration
string$path
int$expectedStorageId
Test:
storageDetectionDataProvider

Definition at line 158 of file ResourceFactoryTest.php.

getDriverObjectAcceptsDriverClassName ( )
retrieveFileOrFolderObjectReturnsFileIfPathIsGiven ( )
setUp ( )
protected
storageDetectionDataProvider ( )
Returns
array

Definition at line 167 of file ResourceFactoryTest.php.

tearDown ( )
protected

Definition at line 43 of file ResourceFactoryTest.php.

References GeneralUtility\resetSingletonInstances().

Member Data Documentation

$filesCreated = []
protected

Definition at line 35 of file ResourceFactoryTest.php.

$singletonInstances = []
protected

Definition at line 25 of file ResourceFactoryTest.php.

$subject
protected

Definition at line 30 of file ResourceFactoryTest.php.