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

Public Member Functions

 getDefaultIconIdentifierReturnsTheCorrectDefaultIconIdentifierString ()
 
 isRegisteredReturnsTrueForRegisteredIcon ()
 
 isRegisteredReturnsFalseForNotRegisteredIcon ()
 
 registerIconAddNewIconToRegistry ()
 
 registerIconThrowsInvalidArgumentExceptionWithInvalidIconProvider ()
 
 getIconConfigurationByIdentifierThrowsExceptionWithUnregisteredIconIdentifier ()
 
 getIconConfigurationByIdentifierReturnsCorrectConfiguration ()
 
 getAllRegisteredIconIdentifiersReturnsAnArrayWithIconIdentiefiers ()
 
 getAllRegisteredIconIdentifiersReturnsArrayWithAllRegisteredIconIdentifiers ()
 
 getIconIdentifierForFileExtensionReturnsDefaultIconIdentifierForEmptyFileExtension ()
 
 getIconIdentifierForFileExtensionReturnsDefaultIconIdentifierForUnknownFileExtension ()
 
 getIconIdentifierForFileExtensionReturnsImageIconIdentifierForImageFileExtension ()
 
 registerFileExtensionRegisterAnIcon ()
 
 registerFileExtensionOverwriteAnExistingIcon ()
 
 registerMimeTypeIconRegisterAnIcon ()
 
 registerMimeTypeIconOverwriteAnExistingIcon ()
 
 getIconIdentifierForMimeTypeWithUnknowMimeTypeReturnNull ()
 

Protected Member Functions

 setUp ()
 
- 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

 $subject = null
 
 $notRegisteredIconIdentifier = 'my-super-unregistered-identifier'
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

TestCase for

Definition at line 24 of file IconRegistryTest.php.

Member Function Documentation

getAllRegisteredIconIdentifiersReturnsAnArrayWithIconIdentiefiers ( )
Test:

Definition at line 125 of file IconRegistryTest.php.

getAllRegisteredIconIdentifiersReturnsArrayWithAllRegisteredIconIdentifiers ( )
Test:

Definition at line 133 of file IconRegistryTest.php.

getDefaultIconIdentifierReturnsTheCorrectDefaultIconIdentifierString ( )
Test:

Definition at line 49 of file IconRegistryTest.php.

getIconConfigurationByIdentifierReturnsCorrectConfiguration ( )
Test:

Definition at line 112 of file IconRegistryTest.php.

getIconConfigurationByIdentifierThrowsExceptionWithUnregisteredIconIdentifier ( )
Test:

Definition at line 101 of file IconRegistryTest.php.

getIconIdentifierForFileExtensionReturnsDefaultIconIdentifierForEmptyFileExtension ( )
Test:

Definition at line 143 of file IconRegistryTest.php.

getIconIdentifierForFileExtensionReturnsDefaultIconIdentifierForUnknownFileExtension ( )
Test:

Definition at line 152 of file IconRegistryTest.php.

getIconIdentifierForFileExtensionReturnsImageIconIdentifierForImageFileExtension ( )
Test:

Definition at line 161 of file IconRegistryTest.php.

getIconIdentifierForMimeTypeWithUnknowMimeTypeReturnNull ( )
Test:

Definition at line 210 of file IconRegistryTest.php.

isRegisteredReturnsFalseForNotRegisteredIcon ( )
Test:

Definition at line 67 of file IconRegistryTest.php.

isRegisteredReturnsTrueForRegisteredIcon ( )
Test:

Definition at line 58 of file IconRegistryTest.php.

registerFileExtensionOverwriteAnExistingIcon ( )
Test:

Definition at line 180 of file IconRegistryTest.php.

registerFileExtensionRegisterAnIcon ( )
Test:

Definition at line 170 of file IconRegistryTest.php.

registerIconAddNewIconToRegistry ( )
Test:

Definition at line 76 of file IconRegistryTest.php.

registerIconThrowsInvalidArgumentExceptionWithInvalidIconProvider ( )
Test:

Definition at line 90 of file IconRegistryTest.php.

registerMimeTypeIconOverwriteAnExistingIcon ( )
Test:

Definition at line 200 of file IconRegistryTest.php.

registerMimeTypeIconRegisterAnIcon ( )
Test:

Definition at line 190 of file IconRegistryTest.php.

setUp ( )
protected

Set up

Returns
void

Definition at line 41 of file IconRegistryTest.php.

Member Data Documentation

$notRegisteredIconIdentifier = 'my-super-unregistered-identifier'
protected

Definition at line 34 of file IconRegistryTest.php.

$subject = null
protected

Definition at line 29 of file IconRegistryTest.php.