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

Public Member Functions

 MimeTypeValidatorThrowsExceptionIfAllowedMimeTypesOptionIsString ()
 
 MimeTypeValidatorThrowsExceptionIfAllowedMimeTypesOptionIsEmptyArray ()
 
 MimeTypeValidatorReturnsTrueIfFileResourceIsNotAllowedMimeType ()
 
 MimeTypeValidatorReturnsFalseIfInputIsEmptyString ()
 
 MimeTypeValidatorReturnsTrueIfInputIsNoFileResource ()
 

Additional Inherited Members

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

Detailed Description

Test case

Definition at line 26 of file MimeTypeValidatorTest.php.

Member Function Documentation

MimeTypeValidatorReturnsFalseIfInputIsEmptyString ( )
Test:

Definition at line 85 of file MimeTypeValidatorTest.php.

MimeTypeValidatorReturnsTrueIfFileResourceIsNotAllowedMimeType ( )
Test:

Definition at line 66 of file MimeTypeValidatorTest.php.

MimeTypeValidatorReturnsTrueIfInputIsNoFileResource ( )
Test:

Definition at line 99 of file MimeTypeValidatorTest.php.

MimeTypeValidatorThrowsExceptionIfAllowedMimeTypesOptionIsEmptyArray ( )
Test:

Definition at line 49 of file MimeTypeValidatorTest.php.

MimeTypeValidatorThrowsExceptionIfAllowedMimeTypesOptionIsString ( )
Test:

Definition at line 32 of file MimeTypeValidatorTest.php.