‪TYPO3CMS  11.5
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest:
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait

Public Member Functions

array shortcutsAreRedirectedDataProvider ()
 
 shortcutsAreRedirectedToFirstSubPage (string $uri)
 
 shortcutsAreRedirectedAndRenderFirstSubPage (string $uri)
 
array pageIsRenderedWithPathsDataProvider ()
 
 pageIsRenderedWithPaths (string $uri, string $expectedPageTitle)
 
 pageIsRenderedWithPathsAndChineseDefaultLanguageDataProvider ()
 
 pageIsRenderedWithPathsAndChineseDefaultLanguage (string $uri, string $expectedPageTitle)
 
 pageIsRenderedWithPathsAndChineseBaseDataProvider ()
 
 pageIsRenderedWithPathsAndChineseBase (string $uri, string $expectedPageTitle)
 
array pageIsRenderedWithDomainsDataProvider ()
 
 pageIsRenderedWithDomains (string $uri, string $expectedPageTitle)
 
array restrictedPageIsRenderedDataProvider ()
 
 restrictedPageIsRendered (string $uri, int $frontendUserId, string $expectedPageTitle)
 
array restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorDataProvider ()
 
 restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithoutHavingErrorHandling (string $uri, int $frontendUserId)
 
 restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling (string $uri, int $frontendUserId)
 
 restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling (string $uri, int $frontendUserId)
 
array restrictedPageWithParentSysFolderIsRenderedDataProvider ()
 
 restrictedPageWithParentSysFolderIsRendered (string $uri, int $frontendUserId, string $expectedPageTitle)
 
array restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorDataProvider ()
 
 restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorWithHavingFluidErrorHandling (string $uri, int $frontendUserId)
 
 restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling (string $uri, int $frontendUserId)
 
 restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling (string $uri, int $frontendUserId)
 
array hiddenPageSends404ResponseRegardlessOfVisitorGroupDataProvider ()
 
 hiddenPageSends404ResponseRegardlessOfVisitorGroup (string $uri, int $frontendUserId)
 
array pageRenderingStopsWithInvalidCacheHashDataProvider ()
 
 pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingFluidErrorHandling (string $uri)
 
 pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPageErrorHandling (string $uri)
 
 pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPhpErrorHandling (string $uri)
 
array pageIsRenderedWithValidCacheHashDataProvider ()
 
 pageIsRenderedWithValidCacheHash ($uri)
 
array checkIfIndexPhpReturnsShortcutRedirectWithPageIdAndTypeNumProvidedDataProvider ()
 
 checkIfIndexPhpReturnsShortcutRedirectWithPageIdAndTypeNumProvided (string $uri)
 
 crossSiteShortcutsAreRedirectedDataProvider ()
 
 crossSiteShortcutsAreRedirected (string $uri, int $expectedStatusCode, array $expectedHeaders)
 
 crossSiteShortcutsWithWrongSiteHostSendsPageNotFoundWithoutHavingErrorHandlingDataProvider ()
 
 crossSiteShortcutsWithWrongSiteHostSendsPageNotFoundWithoutHavingErrorHandling (string $uri)
 

Protected Member Functions

 setUp ()
 
 setUpDatabase ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase
array wrapInArray (array $array)
 
array keysFromValues (array $array)
 
array keysFromTemplate (array $array, string $template, ?callable $callback=null)
 
ArrayValueInstruction createTypoLinkUrlInstruction (array $typoScript)
 
ArrayValueInstruction createHierarchicalMenuProcessorInstruction (array $typoScript)
 
ArrayValueInstruction createLanguageMenuProcessorInstruction (array $typoScript)
 
array filterMenu (array $menu, array $keepNames=['title', 'link'])
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
 writeSiteConfiguration (string $identifier, array $site=[], array $languages=[], array $errorHandling=[])
 
 mergeSiteConfiguration (string $identifier, array $overrides)
 
array buildSiteConfiguration (int $rootPageId, string $base='')
 
array buildDefaultLanguageConfiguration (string $identifier, string $base)
 
array buildLanguageConfiguration (string $identifier, string $base, array $fallbackIdentifiers=[], ?string $fallbackType=null)
 
array buildErrorHandlingConfiguration (string $handler, array $codes)
 
mixed resolveLanguagePreset (string $identifier)
 
InternalRequest applyInstructions (InternalRequest $request, AbstractInstruction ... $instructions)
 
AbstractInstruction mergeInstruction (AbstractInstruction $current, AbstractInstruction $other)
 

Additional Inherited Members

- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
static failIfArrayIsNotEmpty (array $items)
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase
const LANGUAGE_PRESETS
 
 $configurationToUseInTestInstance
 
 $coreExtensionsToLoad = array( 'workspaces' )
 

Detailed Description

Test case for frontend requests having site handling configured

Definition at line 31 of file SiteRequestTest.php.

Member Function Documentation

◆ checkIfIndexPhpReturnsShortcutRedirectWithPageIdAndTypeNumProvided()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::checkIfIndexPhpReturnsShortcutRedirectWithPageIdAndTypeNumProvided ( string  $uri)
Parameters
string$uri
Test:
‪@dataProvider checkIfIndexPhpReturnsShortcutRedirectWithPageIdAndTypeNumProvidedDataProvider

Definition at line 1020 of file SiteRequestTest.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildSiteConfiguration(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ checkIfIndexPhpReturnsShortcutRedirectWithPageIdAndTypeNumProvidedDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::checkIfIndexPhpReturnsShortcutRedirectWithPageIdAndTypeNumProvidedDataProvider ( )

◆ crossSiteShortcutsAreRedirected()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::crossSiteShortcutsAreRedirected ( string  $uri,
int  $expectedStatusCode,
array  $expectedHeaders 
)

◆ crossSiteShortcutsAreRedirectedDataProvider()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::crossSiteShortcutsAreRedirectedDataProvider ( )

Definition at line 1035 of file SiteRequestTest.php.

◆ crossSiteShortcutsWithWrongSiteHostSendsPageNotFoundWithoutHavingErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::crossSiteShortcutsWithWrongSiteHostSendsPageNotFoundWithoutHavingErrorHandling ( string  $uri)

◆ crossSiteShortcutsWithWrongSiteHostSendsPageNotFoundWithoutHavingErrorHandlingDataProvider()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::crossSiteShortcutsWithWrongSiteHostSendsPageNotFoundWithoutHavingErrorHandlingDataProvider ( )

Definition at line 1119 of file SiteRequestTest.php.

◆ hiddenPageSends404ResponseRegardlessOfVisitorGroup()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::hiddenPageSends404ResponseRegardlessOfVisitorGroup ( string  $uri,
int  $frontendUserId 
)

◆ hiddenPageSends404ResponseRegardlessOfVisitorGroupDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::hiddenPageSends404ResponseRegardlessOfVisitorGroupDataProvider ( )

◆ pageIsRenderedWithDomains()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithDomains ( string  $uri,
string  $expectedPageTitle 
)

◆ pageIsRenderedWithDomainsDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithDomainsDataProvider ( )

◆ pageIsRenderedWithPaths()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithPaths ( string  $uri,
string  $expectedPageTitle 
)

◆ pageIsRenderedWithPathsAndChineseBase()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithPathsAndChineseBase ( string  $uri,
string  $expectedPageTitle 
)

◆ pageIsRenderedWithPathsAndChineseBaseDataProvider()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithPathsAndChineseBaseDataProvider ( )

Definition at line 294 of file SiteRequestTest.php.

◆ pageIsRenderedWithPathsAndChineseDefaultLanguage()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithPathsAndChineseDefaultLanguage ( string  $uri,
string  $expectedPageTitle 
)

◆ pageIsRenderedWithPathsAndChineseDefaultLanguageDataProvider()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithPathsAndChineseDefaultLanguageDataProvider ( )

◆ pageIsRenderedWithPathsDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithPathsDataProvider ( )

◆ pageIsRenderedWithValidCacheHash()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithValidCacheHash (   $uri)

◆ pageIsRenderedWithValidCacheHashDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageIsRenderedWithValidCacheHashDataProvider ( )

◆ pageRenderingStopsWithInvalidCacheHashDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageRenderingStopsWithInvalidCacheHashDataProvider ( )

◆ pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingFluidErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingFluidErrorHandling ( string  $uri)

◆ pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPageErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPageErrorHandling ( string  $uri)
Parameters
string$uri
Test:
‪@dataProvider pageRenderingStopsWithInvalidCacheHashDataProvider
Todo:
‪Response body cannot be asserted since PageContentErrorHandler::handlePageError executes request via HTTP (not internally)

Definition at line 886 of file SiteRequestTest.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildErrorHandlingConfiguration(), TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildSiteConfiguration(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPhpErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPhpErrorHandling ( string  $uri)

◆ restrictedPageIsRendered()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageIsRendered ( string  $uri,
int  $frontendUserId,
string  $expectedPageTitle 
)
Parameters
string$uri
int$frontendUserId
string$expectedPageTitle
Test:
‪@dataProvider restrictedPageIsRenderedDataProvider

Definition at line 459 of file SiteRequestTest.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildSiteConfiguration(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ restrictedPageIsRenderedDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageIsRenderedDataProvider ( )

◆ restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorDataProvider ( )

◆ restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling ( string  $uri,
int  $frontendUserId 
)
Parameters
string$uri
int$frontendUserId
Test:
‪@dataProvider restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorDataProvider
Todo:
‪Response body cannot be asserted since PageContentErrorHandler::handlePageError executes request via HTTP (not internally)

Definition at line 551 of file SiteRequestTest.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildErrorHandlingConfiguration(), TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildSiteConfiguration(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling ( string  $uri,
int  $frontendUserId 
)

◆ restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithoutHavingErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithoutHavingErrorHandling ( string  $uri,
int  $frontendUserId 
)
Parameters
string$uri
int$frontendUserId
Test:
‪@dataProvider restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorDataProvider

Definition at line 518 of file SiteRequestTest.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildSiteConfiguration(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ restrictedPageWithParentSysFolderIsRendered()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageWithParentSysFolderIsRendered ( string  $uri,
int  $frontendUserId,
string  $expectedPageTitle 
)
Parameters
string$uri
int$frontendUserId
string$expectedPageTitle
Test:
‪@dataProvider restrictedPageWithParentSysFolderIsRenderedDataProvider

Definition at line 629 of file SiteRequestTest.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildSiteConfiguration(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ restrictedPageWithParentSysFolderIsRenderedDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageWithParentSysFolderIsRenderedDataProvider ( )

◆ restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorDataProvider ( )

◆ restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorWithHavingFluidErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorWithHavingFluidErrorHandling ( string  $uri,
int  $frontendUserId 
)
Parameters
string$uri
int$frontendUserId
Test:
‪@dataProvider restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorDataProvider

Definition at line 680 of file SiteRequestTest.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildErrorHandlingConfiguration(), TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildSiteConfiguration(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling ( string  $uri,
int  $frontendUserId 
)
Parameters
string$uri
int$frontendUserId
Test:
‪@dataProvider restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorDataProvider
Todo:
‪Response body cannot be asserted since PageContentErrorHandler::handlePageError executes request via HTTP (not internally)

Definition at line 719 of file SiteRequestTest.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildErrorHandlingConfiguration(), TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildSiteConfiguration(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling ( string  $uri,
int  $frontendUserId 
)
Parameters
string$uri
int$frontendUserId
Test:
‪@dataProvider restrictedPageWithParentSysFolderSendsForbiddenResponseWithUnauthorizedVisitorDataProvider

Definition at line 748 of file SiteRequestTest.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildErrorHandlingConfiguration(), TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildSiteConfiguration(), and TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\writeSiteConfiguration().

◆ setUp()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::setUp ( )
protected

◆ setUpDatabase()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::setUpDatabase ( )
protected

◆ shortcutsAreRedirectedAndRenderFirstSubPage()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::shortcutsAreRedirectedAndRenderFirstSubPage ( string  $uri)

◆ shortcutsAreRedirectedDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::shortcutsAreRedirectedDataProvider ( )

◆ shortcutsAreRedirectedToFirstSubPage()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest::shortcutsAreRedirectedToFirstSubPage ( string  $uri)