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

Public Member Functions

 invalidInlineChildrenFilterParametersDataProvider ()
 
 areInlineChildrenFilteredWithInvalidParameters ($allowed, $disallowed, $values)
 
 extensionFilterIgnoresCaseInAllowedExtensionCheckDataProvider ()
 

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 = []
 
 $filter
 
 $parameters
 
 $dataHandlerMock
 
 $fileFactoryMock
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test suite for filtering files by their extensions.

Definition at line 20 of file FileExtensionFilterTest.php.

Member Function Documentation

areInlineChildrenFilteredWithInvalidParameters (   $allowed,
  $disallowed,
  $values 
)
Parameters
array | string$allowed
array | string$disallowed
array | string$values
Test:
invalidInlineChildrenFilterParametersDataProvider

Definition at line 91 of file FileExtensionFilterTest.php.

extensionFilterIgnoresCaseInAllowedExtensionCheckDataProvider ( )
Returns
array

Definition at line 106 of file FileExtensionFilterTest.php.

invalidInlineChildrenFilterParametersDataProvider ( )
Returns
array

Definition at line 75 of file FileExtensionFilterTest.php.

setUp ( )
protected

Sets up this test suite.

Definition at line 50 of file FileExtensionFilterTest.php.

References GeneralUtility\getSingletonInstances(), and GeneralUtility\setSingletonInstance().

tearDown ( )
protected

Cleans up this test suite.

Definition at line 66 of file FileExtensionFilterTest.php.

References GeneralUtility\resetSingletonInstances().

Member Data Documentation

$dataHandlerMock
protected

Definition at line 40 of file FileExtensionFilterTest.php.

$fileFactoryMock
protected

Definition at line 45 of file FileExtensionFilterTest.php.

$filter
protected

Definition at line 30 of file FileExtensionFilterTest.php.

$parameters
protected

Definition at line 35 of file FileExtensionFilterTest.php.

$singletonInstances = []
protected

Definition at line 25 of file FileExtensionFilterTest.php.