‪TYPO3CMS  10.4
TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest:

Public Member Functions

 sectionIndexReturnsEmptyArrayIfTheRequestedPageCouldNotBeFetched ()
 
 sectionIndexUsesTheInternalIdIfNoPageIdWasGiven ()
 
 sectionIndexThrowsAnExceptionIfTheInternalQueryFails ()
 
 sectionIndexReturnsOverlaidRowBasedOnTheLanguageOfTheGivenPage ()
 
array sectionIndexFiltersDataProvider ()
 
 sectionIndexFilters ($expectedAmount, array $dataRow)
 
array sectionIndexQueriesWithDifferentColPosDataProvider ()
 
 sectionIndexQueriesWithDifferentColPos ($configuration, $whereClausePrefix)
 
array ifsubHasToCheckExcludeUidListDataProvider ()
 
 ifsubHasToCheckExcludeUidList ($menuItems, $excludeUidList, $expectedResult)
 
array menuTypoLinkCreatesExpectedTypoLinkConfigurationDataProvider ()
 
 menuTypoLinkCreatesExpectedTypoLinkConfiguration (array $expected, array $mconf, array $page, $oTarget, $addParams='', $typeOverride='', int $overrideId=null)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 prepareSectionIndexTest ()
 

Protected Attributes

AbstractMenuContentObject $subject
 

Detailed Description

Test case

Definition at line 48 of file AbstractMenuContentObjectTest.php.

Member Function Documentation

◆ ifsubHasToCheckExcludeUidList()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::ifsubHasToCheckExcludeUidList (   $menuItems,
  $excludeUidList,
  $expectedResult 
)
Test:
‪@dataProvider ifsubHasToCheckExcludeUidListDataProvider
Parameters
array$menuItems
string$excludeUidList
bool$expectedResult

Definition at line 372 of file AbstractMenuContentObjectTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest\prepareSectionIndexTest().

◆ ifsubHasToCheckExcludeUidListDataProvider()

array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::ifsubHasToCheckExcludeUidListDataProvider ( )
Returns
‪array

Definition at line 334 of file AbstractMenuContentObjectTest.php.

◆ menuTypoLinkCreatesExpectedTypoLinkConfiguration()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::menuTypoLinkCreatesExpectedTypoLinkConfiguration ( array  $expected,
array  $mconf,
array  $page,
  $oTarget,
  $addParams = '',
  $typeOverride = '',
int  $overrideId = null 
)
Test:
‪@dataProvider menuTypoLinkCreatesExpectedTypoLinkConfigurationDataProvider
Parameters
array$expected
array$mconf
array$page
mixed$oTarget
string$addParams
string$typeOverride
int$overrideId

Definition at line 579 of file AbstractMenuContentObjectTest.php.

◆ menuTypoLinkCreatesExpectedTypoLinkConfigurationDataProvider()

array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::menuTypoLinkCreatesExpectedTypoLinkConfigurationDataProvider ( )
Returns
‪array

Definition at line 400 of file AbstractMenuContentObjectTest.php.

◆ prepareSectionIndexTest()

◆ sectionIndexFilters()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::sectionIndexFilters (   $expectedAmount,
array  $dataRow 
)
Test:
‪@dataProvider sectionIndexFiltersDataProvider
Parameters
int$expectedAmount
array$dataRow

Definition at line 241 of file AbstractMenuContentObjectTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest\prepareSectionIndexTest().

◆ sectionIndexFiltersDataProvider()

array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::sectionIndexFiltersDataProvider ( )
Returns
‪array

Definition at line 197 of file AbstractMenuContentObjectTest.php.

◆ sectionIndexQueriesWithDifferentColPos()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::sectionIndexQueriesWithDifferentColPos (   $configuration,
  $whereClausePrefix 
)
Test:
‪@dataProvider sectionIndexQueriesWithDifferentColPosDataProvider
Parameters
array$configuration
string$whereClausePrefix

Definition at line 301 of file AbstractMenuContentObjectTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest\prepareSectionIndexTest().

◆ sectionIndexQueriesWithDifferentColPosDataProvider()

array TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::sectionIndexQueriesWithDifferentColPosDataProvider ( )
Returns
‪array

Definition at line 269 of file AbstractMenuContentObjectTest.php.

◆ sectionIndexReturnsEmptyArrayIfTheRequestedPageCouldNotBeFetched()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::sectionIndexReturnsEmptyArrayIfTheRequestedPageCouldNotBeFetched ( )

◆ sectionIndexReturnsOverlaidRowBasedOnTheLanguageOfTheGivenPage()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::sectionIndexReturnsOverlaidRowBasedOnTheLanguageOfTheGivenPage ( )

◆ sectionIndexThrowsAnExceptionIfTheInternalQueryFails()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::sectionIndexThrowsAnExceptionIfTheInternalQueryFails ( )

◆ sectionIndexUsesTheInternalIdIfNoPageIdWasGiven()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::sectionIndexUsesTheInternalIdIfNoPageIdWasGiven ( )

◆ setUp()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::setUp ( )
protected

Set up this testcase

Definition at line 57 of file AbstractMenuContentObjectTest.php.

References $GLOBALS.

◆ tearDown()

TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::tearDown ( )
protected

Reset singleton instances

Definition at line 94 of file AbstractMenuContentObjectTest.php.

Member Data Documentation

◆ $subject

AbstractMenuContentObject TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Menu\AbstractMenuContentObjectTest::$subject
protected

Definition at line 52 of file AbstractMenuContentObjectTest.php.