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

Public Member Functions

 prepareIconMarkupWithNameReturnsInstanceOfIconWithCorrectMarkup ()
 
 wrongNamesDataProvider ()
 
 prepareIconMarkupWithInvalidNameThrowsException ($name, $expectedExceptionCode)
 

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
 
 $icon = null
 
- 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 23 of file FontawesomeIconProviderTest.php.

Member Function Documentation

prepareIconMarkupWithInvalidNameThrowsException (   $name,
  $expectedExceptionCode 
)

wrongNamesDataProvider

Parameters
string$name
int$expectedExceptionCode
Test:

Definition at line 79 of file FontawesomeIconProviderTest.php.

prepareIconMarkupWithNameReturnsInstanceOfIconWithCorrectMarkup ( )
Test:

Definition at line 51 of file FontawesomeIconProviderTest.php.

setUp ( )
protected

Set up

Returns
void

Definition at line 40 of file FontawesomeIconProviderTest.php.

References GeneralUtility\makeInstance(), and Icon\SIZE_SMALL.

wrongNamesDataProvider ( )

DataProvider for icon names

Returns
array

Definition at line 62 of file FontawesomeIconProviderTest.php.

Member Data Documentation

$icon = null
protected

Definition at line 33 of file FontawesomeIconProviderTest.php.

$subject = null
protected

Definition at line 28 of file FontawesomeIconProviderTest.php.