TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
FolderStructureTestCase Class Reference
Inheritance diagram for FolderStructureTestCase:
UnitTestCase BaseTestCase AbstractNodeTest DirectoryNodeTest FileNodeTest

Protected Member Functions

 getVirtualTestDir ($prefix= 'root_')
 
 getVirtualTestFilePath ($prefix= 'file_')
 
- 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= '')
 

Additional Inherited Members

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

Detailed Description

Test case

Definition at line 22 of file FolderStructureTestCase.php.

Member Function Documentation

getVirtualTestDir (   $prefix = 'root_')
protected

Create a random directory in the virtual file system and return the path.

Parameters
string$prefix
Returns
string

Definition at line 30 of file FolderStructureTestCase.php.

References BaseTestCase\getUniqueId(), and GeneralUtility\mkdir_deep().

Referenced by FolderStructureTestCase\getVirtualTestFilePath().

getVirtualTestFilePath (   $prefix = 'file_')
protected

Return a random test filename within a virtual test directory

Parameters
string$prefix
Returns
string

Definition at line 44 of file FolderStructureTestCase.php.

References BaseTestCase\getUniqueId(), and FolderStructureTestCase\getVirtualTestDir().