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

Public Member Functions

 sectionIndexReturnsEmptyArrayIfTheRequestedPageCouldNotBeFetched ()
 
 sectionIndexUsesTheInternalIdIfNoPageIdWasGiven ()
 
 sectionIndexThrowsAnExceptionIfTheInternalQueryFails ()
 
 sectionIndexReturnsOverlaidRowBasedOnTheLanguageOfTheGivenPage ()
 
 sectionIndexFiltersDataProvider ()
 
 sectionIndexFilters ($expectedAmount, array $dataRow)
 
 sectionIndexQueriesWithDifferentColPosDataProvider ()
 
 sectionIndexQueriesWithDifferentColPos ($configuration, $whereClausePrefix)
 
 ifsubHasToCheckExcludeUidListDataProvider ()
 
 ifsubHasToCheckExcludeUidList ($menuItems, $excludeUidList, $expectedResult)
 
 menuTypoLinkCreatesExpectedTypoLinkConfiurationDataProvider ()
 
 menuTypoLinkCreatesExpectedTypoLinkConfiguration (array $expected, array $mconf, $useCacheHash=true, array $page, $oTarget, $no_cache, $script, $overrideArray= '', $addParams= '', $typeOverride= '')
 

Protected Member Functions

 setUp ()
 
 prepareSectionIndexTest ()
 
- 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
 
- 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 24 of file AbstractMenuContentObjectTest.php.

Member Function Documentation

ifsubHasToCheckExcludeUidList (   $menuItems,
  $excludeUidList,
  $expectedResult 
)
Test:
ifsubHasToCheckExcludeUidListDataProvider
Parameters
array$menuItems
string$excludeUidList
bool$expectedResult

Definition at line 273 of file AbstractMenuContentObjectTest.php.

References AbstractMenuContentObjectTest\prepareSectionIndexTest().

ifsubHasToCheckExcludeUidListDataProvider ( )
Returns
array

Definition at line 235 of file AbstractMenuContentObjectTest.php.

menuTypoLinkCreatesExpectedTypoLinkConfiguration ( array  $expected,
array  $mconf,
  $useCacheHash = true,
array  $page,
  $oTarget,
  $no_cache,
  $script,
  $overrideArray = '',
  $addParams = '',
  $typeOverride = '' 
)
Test:
menuTypoLinkCreatesExpectedTypoLinkConfiurationDataProvider
Parameters
array$expected
array$mconf
bool$useCacheHash
array$page
mixed$oTarget
int$no_cache
string$script
string$overrideArray
string$addParams
string$typeOverride

Definition at line 534 of file AbstractMenuContentObjectTest.php.

menuTypoLinkCreatesExpectedTypoLinkConfiurationDataProvider ( )
Returns
array

Definition at line 299 of file AbstractMenuContentObjectTest.php.

sectionIndexFilters (   $expectedAmount,
array  $dataRow 
)
Test:
sectionIndexFiltersDataProvider
Parameters
int$expectedAmount
array$dataRow

Definition at line 160 of file AbstractMenuContentObjectTest.php.

References AbstractMenuContentObjectTest\prepareSectionIndexTest().

sectionIndexFiltersDataProvider ( )
Returns
array

Definition at line 116 of file AbstractMenuContentObjectTest.php.

sectionIndexQueriesWithDifferentColPos (   $configuration,
  $whereClausePrefix 
)
Test:
sectionIndexQueriesWithDifferentColPosDataProvider
Parameters
array$configuration
string$whereClausePrefix

Definition at line 209 of file AbstractMenuContentObjectTest.php.

References AbstractMenuContentObjectTest\prepareSectionIndexTest().

sectionIndexQueriesWithDifferentColPosDataProvider ( )
Returns
array

Definition at line 177 of file AbstractMenuContentObjectTest.php.

sectionIndexReturnsEmptyArrayIfTheRequestedPageCouldNotBeFetched ( )
sectionIndexReturnsOverlaidRowBasedOnTheLanguageOfTheGivenPage ( )
sectionIndexThrowsAnExceptionIfTheInternalQueryFails ( )
sectionIndexUsesTheInternalIdIfNoPageIdWasGiven ( )
setUp ( )
protected

Set up this testcase

Definition at line 34 of file AbstractMenuContentObjectTest.php.

References $GLOBALS, and BaseTestCase\buildAccessibleProxy().

Member Data Documentation

$subject = null
protected

Definition at line 29 of file AbstractMenuContentObjectTest.php.