‪TYPO3CMS  10.4
TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest:

Public Member Functions

 headerAndFooterMarkersAreReplacedDuringIntProcessing ()
 
 processNonCacheableContentPartsAndSubstituteContentMarkers ()
 
 localizationReturnsUnchangedStringIfNotLocallangLabel ()
 
array getSysDomainCacheDataProvider ()
 
array baseUrlWrapHandlesDifferentUrlsDataProvider ()
 
 baseUrlWrapHandlesDifferentUrls ($baseUrl, $url, $expected)
 
array initializeSearchWordDataBuildsCorrectRegexDataProvider ()
 
 initializeSearchWordDataBuildsCorrectRegex (array $searchWordGetParameters, $enableStandaloneSearchWords, $expectedRegex)
 
 splitLinkVarsStringSplitsStringByComma ($string, $expected)
 
array splitLinkVarsDataProvider ()
 
 calculateLinkVarsConsidersCorrectVariables (string $linkVars, array $getVars, string $expected)
 
 calculateLinkVarsDataProvider ()
 
 initializeSearchWordDataDoesNothingWithNullValue ()
 
 initializeSearchWordDataDoesNothingWithEmptyStringValue ()
 
 initializeSearchWordDataDoesNothingWithEmptyArrayValue ()
 
 initializeSearchWordDataFillsProperRegexpWithArray ()
 
 initializeSearchWordDataFillsProperRegexpWithArrayAndStandaloneOption ()
 
 indexedSearchHookUsesPageTitleApi ()
 
 pageRendererLanguageIsSetToSiteLanguageTypo3LanguageInConstructor ()
 
 languageServiceIsSetUpWithSiteLanguageTypo3LanguageInConstructor ()
 
 mountPointParameterContainsOnlyValidMPValues ()
 

Protected Member Functions

 setUp ()
 
PHPUnit Framework MockObject MockObject TypoScriptFrontendController setupTsfeMockForHeaderFooterReplacementCheck ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
PHPUnit Framework MockObject MockObject TYPO3 TestingFramework Core AccessibleObjectInterface TypoScriptFrontendController $subject
 

Private Member Functions

 createSiteWithDefaultLanguage (array $languageConfiguration)
 

Detailed Description

Test case

Definition at line 47 of file TypoScriptFrontendControllerTest.php.

Member Function Documentation

◆ baseUrlWrapHandlesDifferentUrls()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::baseUrlWrapHandlesDifferentUrls (   $baseUrl,
  $url,
  $expected 
)

@dataProvider baseUrlWrapHandlesDifferentUrlsDataProvider

Test:
Parameters
string$baseUrl
string$url
string$expected

Definition at line 227 of file TypoScriptFrontendControllerTest.php.

◆ baseUrlWrapHandlesDifferentUrlsDataProvider()

array TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::baseUrlWrapHandlesDifferentUrlsDataProvider ( )
Returns
‪array

Definition at line 194 of file TypoScriptFrontendControllerTest.php.

◆ calculateLinkVarsConsidersCorrectVariables()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::calculateLinkVarsConsidersCorrectVariables ( string  $linkVars,
array  $getVars,
string  $expected 
)
Test:
‪@dataProvider calculateLinkVarsDataProvider
Parameters
string$linkVars
array$getVars
string$expected

Definition at line 417 of file TypoScriptFrontendControllerTest.php.

◆ calculateLinkVarsDataProvider()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::calculateLinkVarsDataProvider ( )

Definition at line 424 of file TypoScriptFrontendControllerTest.php.

◆ createSiteWithDefaultLanguage()

◆ getSysDomainCacheDataProvider()

array TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::getSysDomainCacheDataProvider ( )

Tests concerning getSysDomainCache

Returns
‪array

Definition at line 176 of file TypoScriptFrontendControllerTest.php.

◆ headerAndFooterMarkersAreReplacedDuringIntProcessing()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::headerAndFooterMarkersAreReplacedDuringIntProcessing ( )

◆ indexedSearchHookUsesPageTitleApi()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::indexedSearchHookUsesPageTitleApi ( )

◆ initializeSearchWordDataBuildsCorrectRegex()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::initializeSearchWordDataBuildsCorrectRegex ( array  $searchWordGetParameters,
  $enableStandaloneSearchWords,
  $expectedRegex 
)
Test:
‪@dataProvider initializeSearchWordDataBuildsCorrectRegexDataProvider
Parameters
array$searchWordGetParameters‪The values that should be loaded in the sword_list GET parameter.
bool$enableStandaloneSearchWords‪If TRUE the sword_standAlone option will be enabled.
string$expectedRegex‪The expected regex after processing the search words.

Definition at line 275 of file TypoScriptFrontendControllerTest.php.

References TYPO3\CMS\Core\Http\ServerRequestFactory\fromGlobals().

◆ initializeSearchWordDataBuildsCorrectRegexDataProvider()

array TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::initializeSearchWordDataBuildsCorrectRegexDataProvider ( )
Returns
‪array

Definition at line 236 of file TypoScriptFrontendControllerTest.php.

◆ initializeSearchWordDataDoesNothingWithEmptyArrayValue()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::initializeSearchWordDataDoesNothingWithEmptyArrayValue ( )

◆ initializeSearchWordDataDoesNothingWithEmptyStringValue()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::initializeSearchWordDataDoesNothingWithEmptyStringValue ( )

◆ initializeSearchWordDataDoesNothingWithNullValue()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::initializeSearchWordDataDoesNothingWithNullValue ( )

◆ initializeSearchWordDataFillsProperRegexpWithArray()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::initializeSearchWordDataFillsProperRegexpWithArray ( )

◆ initializeSearchWordDataFillsProperRegexpWithArrayAndStandaloneOption()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::initializeSearchWordDataFillsProperRegexpWithArrayAndStandaloneOption ( )

◆ languageServiceIsSetUpWithSiteLanguageTypo3LanguageInConstructor()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::languageServiceIsSetUpWithSiteLanguageTypo3LanguageInConstructor ( )

◆ localizationReturnsUnchangedStringIfNotLocallangLabel()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::localizationReturnsUnchangedStringIfNotLocallangLabel ( )

◆ mountPointParameterContainsOnlyValidMPValues()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::mountPointParameterContainsOnlyValidMPValues ( )

◆ pageRendererLanguageIsSetToSiteLanguageTypo3LanguageInConstructor()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::pageRendererLanguageIsSetToSiteLanguageTypo3LanguageInConstructor ( )

◆ processNonCacheableContentPartsAndSubstituteContentMarkers()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::processNonCacheableContentPartsAndSubstituteContentMarkers ( )

This is the callback that mimics a USER_INT extension

Definition at line 89 of file TypoScriptFrontendControllerTest.php.

References $GLOBALS.

◆ setUp()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::setUp ( )
protected

Definition at line 57 of file TypoScriptFrontendControllerTest.php.

References $GLOBALS.

◆ setupTsfeMockForHeaderFooterReplacementCheck()

PHPUnit Framework MockObject MockObject TypoScriptFrontendController TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::setupTsfeMockForHeaderFooterReplacementCheck ( )
protected

Setup a \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController object only for testing the header and footer replacement during USER_INT rendering

Returns
‪\PHPUnit\Framework\MockObject\MockObject|TypoScriptFrontendController

prepare an EventDispatcher for ::makeInstance(AssetRenderer)

See also
‪\TYPO3\CMS\Core\Page\PageRenderer::renderJavaScriptAndCss

Definition at line 101 of file TypoScriptFrontendControllerTest.php.

Referenced by TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest\headerAndFooterMarkersAreReplacedDuringIntProcessing().

◆ splitLinkVarsDataProvider()

array TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::splitLinkVarsDataProvider ( )
Returns
‪array

Definition at line 306 of file TypoScriptFrontendControllerTest.php.

◆ splitLinkVarsStringSplitsStringByComma()

TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::splitLinkVarsStringSplitsStringByComma (   $string,
  $expected 
)
Test:
‪@dataProvider splitLinkVarsDataProvider
Parameters
$string
$expected

Definition at line 298 of file TypoScriptFrontendControllerTest.php.

Member Data Documentation

◆ $resetSingletonInstances

bool TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest::$resetSingletonInstances = true
protected

Reset singletons created by subject

Definition at line 51 of file TypoScriptFrontendControllerTest.php.

◆ $subject