‪TYPO3CMS  11.5
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 (int $expectedAmount, array $dataRow)
 
array sectionIndexQueriesWithDifferentColPosDataProvider ()
 
 sectionIndexQueriesWithDifferentColPos (array $configuration, string $colPosFromStdWrapValue, string $whereClausePrefix)
 
array ifsubHasToCheckExcludeUidListDataProvider ()
 
 ifsubHasToCheckExcludeUidList (array $menuItems, string $excludeUidList, bool $expectedResult)
 
array menuTypoLinkCreatesExpectedTypoLinkConfigurationDataProvider ()
 
 menuTypoLinkCreatesExpectedTypoLinkConfiguration (array $expected, array $mconf, array $page, string $oTarget, $addParams='', $typeOverride='', $overrideId=null)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 prepareSectionIndexTest ()
 

Protected Attributes

AbstractMenuContentObject MockObject AccessibleObjectInterface $subject
 

Detailed Description

Definition at line 51 of file AbstractMenuContentObjectTest.php.

Member Function Documentation

◆ ifsubHasToCheckExcludeUidList()

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

Definition at line 396 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 358 of file AbstractMenuContentObjectTest.php.

◆ menuTypoLinkCreatesExpectedTypoLinkConfiguration()

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

Definition at line 603 of file AbstractMenuContentObjectTest.php.

◆ menuTypoLinkCreatesExpectedTypoLinkConfigurationDataProvider()

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

Definition at line 435 of file AbstractMenuContentObjectTest.php.

◆ prepareSectionIndexTest()

◆ sectionIndexFilters()

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

Definition at line 248 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 204 of file AbstractMenuContentObjectTest.php.

◆ sectionIndexQueriesWithDifferentColPos()

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

Definition at line 317 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 276 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 61 of file AbstractMenuContentObjectTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\REQUESTTYPE_FE.

◆ tearDown()

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

Reset singleton instances

Definition at line 101 of file AbstractMenuContentObjectTest.php.

Member Data Documentation

◆ $subject

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

Definition at line 56 of file AbstractMenuContentObjectTest.php.