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

Public Member Functions

 isMenuItemValidBlankCallExpectFalse ()
 
 isMenuItemValidOmittedHrefAndRouteExpectFalse ()
 
 isMenuItemValidOmittedTitleExpectFalse ()
 
 isMenuItemValidSetValidHrefAndTitleExpectTrue ()
 

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 for MenuItem

Definition at line 23 of file MenuItemTest.php.

Member Function Documentation

isMenuItemValidBlankCallExpectFalse ( )

Try a blank menu Item

Test:
Returns
void

Definition at line 31 of file MenuItemTest.php.

isMenuItemValidOmittedHrefAndRouteExpectFalse ( )

Try omitting the title and a Href

Test:
Returns
void

Definition at line 44 of file MenuItemTest.php.

isMenuItemValidOmittedTitleExpectFalse ( )

Try omitting the title

Test:
Returns
void

Definition at line 58 of file MenuItemTest.php.

isMenuItemValidSetValidHrefAndTitleExpectTrue ( )

Set a valid title and href

Test:
Returns
void

Definition at line 72 of file MenuItemTest.php.