‪TYPO3CMS  9.5
TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait:
TYPO3\CMS\Backend\Tests\Functional\Controller\Page\TreeControllerTest TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest TYPO3\CMS\FluidStyledContent\Tests\Functional\Rendering\SecureHtmlRenderingTest TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase TYPO3\CMS\Seo\Tests\Functional\Canonical\CanonicalGeneratorTest TYPO3\CMS\Seo\Tests\Functional\HrefLang\HrefLangGeneratorTest TYPO3\CMS\Core\Tests\Functional\MetaDataHandling\PluginsTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LinkGeneratorTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\AbstractLocalizedPagesTestCase TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\MountPointTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\PlainRequestTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugLinkGeneratorTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\TypoLinkGeneratorTest TYPO3\CMS\Frontend\Tests\Functional\XmlSitemap\XmlSitemapIndexTest TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapRecordsTest

Protected Member Functions

 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)
 

Static Protected Member Functions

static failIfArrayIsNotEmpty (array $items)
 

Detailed Description

Trait used for test classes that want to set up (= write) site configuration files.

Mainly used when testing Site-related tests in Frontend requests.

Be sure to set the LANGUAGE_PRESETS const in your class.

Definition at line 33 of file SiteBasedTestTrait.php.

Member Function Documentation

◆ applyInstructions()

InternalRequest TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::applyInstructions ( InternalRequest  $request,
AbstractInstruction ...  $instructions 
)
protected
Parameters
InternalRequest$request
AbstractInstruction‪...$instructions
Returns
‪InternalRequest
Todo:
‪Instruction handling should be part of Testing Framework (multiple instructions per identifier, merge in interface)

Definition at line 241 of file SiteBasedTestTrait.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\mergeInstruction().

Referenced by TYPO3\CMS\FluidStyledContent\Tests\Functional\Rendering\SecureHtmlRenderingTest\invokeFrontendRendering(), and TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\TypoLinkGeneratorTest\invokeTypoLink().

◆ buildDefaultLanguageConfiguration()

array TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::buildDefaultLanguageConfiguration ( string  $identifier,
string  $base 
)
protected
Parameters
string$identifier
string$base
Returns
‪array

Definition at line 122 of file SiteBasedTestTrait.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildLanguageConfiguration().

Referenced by TYPO3\CMS\Frontend\Tests\Functional\XmlSitemap\XmlSitemapIndexTest\checkIfSiteMapIndexContainsPagesSitemap(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSiteResultsInNotFoundResponse(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSlugInsideSiteLanguageResultsInNotFoundResponse(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSlugOutsideSiteLanguageResultsInNotFoundResponse(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\onlyEnglishContentIsRenderedForDefaultLanguage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\onlyEnglishContentIsRenderedForDefaultLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithDomains(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithDomains(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithPaths(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithPaths(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\renderingOfDutchLanguage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\renderingOfDutchLanguage(), TYPO3\CMS\Core\Tests\Functional\MetaDataHandling\PluginsTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapRecordsTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioATest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioBTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioCTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioETest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugLinkGeneratorTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\HrefLang\HrefLangGeneratorTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\TypoLinkGeneratorTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\Canonical\CanonicalGeneratorTest\setUp(), TYPO3\CMS\FluidStyledContent\Tests\Functional\Rendering\SecureHtmlRenderingTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\MountPointTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\shortcutsAreRedirectedAndRenderFirstSubPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\shortcutsAreRedirectedAndRenderFirstSubPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\shortcutsAreRedirectedToDefaultSiteLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\shortcutsAreRedirectedToFirstSubPage(), and TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\unconfiguredTypeNumResultsIn404Error().

◆ buildErrorHandlingConfiguration()

array TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::buildErrorHandlingConfiguration ( string  $handler,
array  $codes 
)
protected
Parameters
string$handler
array$codes
Returns
‪array

Definition at line 182 of file SiteBasedTestTrait.php.

Referenced by TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSiteResultsInNotFoundResponse(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSlugInsideSiteLanguageResultsInNotFoundResponse(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSlugOutsideSiteLanguageResultsInNotFoundResponse(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\onlyEnglishContentIsRenderedForDefaultLanguage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\onlyEnglishContentIsRenderedForDefaultLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPhpErrorHandling(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\renderingOfDutchLanguage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\renderingOfDutchLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling(), and TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\unconfiguredTypeNumResultsIn404Error().

◆ buildLanguageConfiguration()

array TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::buildLanguageConfiguration ( string  $identifier,
string  $base,
array  $fallbackIdentifiers = [],
string  $fallbackType = null 
)
protected
Parameters
string$identifier
string$base
array$fallbackIdentifiers
string$fallbackType
Returns
‪array

Definition at line 140 of file SiteBasedTestTrait.php.

References TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\resolveLanguagePreset().

Referenced by TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildDefaultLanguageConfiguration(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\onlyEnglishContentIsRenderedForDefaultLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithDomains(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithDomains(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithPaths(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithPaths(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\renderingOfDutchLanguage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\renderingOfDutchLanguage(), TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapRecordsTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioATest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioBTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioCTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioETest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugLinkGeneratorTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\HrefLang\HrefLangGeneratorTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\TypoLinkGeneratorTest\setUp(), and TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\MountPointTest\setUp().

◆ buildSiteConfiguration()

array TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::buildSiteConfiguration ( int  $rootPageId,
string  $base = '' 
)
protected
Parameters
int$rootPageId
string$base
Returns
‪array

Definition at line 107 of file SiteBasedTestTrait.php.

Referenced by TYPO3\CMS\Frontend\Tests\Functional\XmlSitemap\XmlSitemapIndexTest\checkIfSiteMapIndexContainsPagesSitemap(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSiteResultsInNotFoundResponse(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSlugInsideSiteLanguageResultsInNotFoundResponse(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSlugOutsideSiteLanguageResultsInNotFoundResponse(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\onlyEnglishContentIsRenderedForDefaultLanguage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\onlyEnglishContentIsRenderedForDefaultLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithDomains(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithDomains(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithPaths(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithPaths(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithValidCacheHash(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithValidCacheHash(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestThrowsExceptionWithInvalidCacheHashWithoutHavingErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestThrowsExceptionWithInvalidCacheHashWithoutHavingErrorHandling(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\renderingOfDutchLanguage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\renderingOfDutchLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\requestsAreRedirectedWithoutHavingDefaultSiteLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageIsRendered(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageIsRendered(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithoutHavingErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithoutHavingErrorHandling(), TYPO3\CMS\Core\Tests\Functional\MetaDataHandling\PluginsTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapRecordsTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioATest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioBTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioCTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioETest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugLinkGeneratorTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\HrefLang\HrefLangGeneratorTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\TypoLinkGeneratorTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\Canonical\CanonicalGeneratorTest\setUp(), TYPO3\CMS\FluidStyledContent\Tests\Functional\Rendering\SecureHtmlRenderingTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\MountPointTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\shortcutsAreRedirectedAndRenderFirstSubPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\shortcutsAreRedirectedAndRenderFirstSubPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\shortcutsAreRedirectedToDefaultSiteLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\shortcutsAreRedirectedToFirstSubPage(), and TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\unconfiguredTypeNumResultsIn404Error().

◆ failIfArrayIsNotEmpty()

static TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::failIfArrayIsNotEmpty ( array  $items)
staticprotected
Parameters
array$items

Reimplemented in TYPO3\CMS\Seo\Tests\Functional\HrefLang\HrefLangGeneratorTest.

Definition at line 38 of file SiteBasedTestTrait.php.

◆ mergeInstruction()

AbstractInstruction TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::mergeInstruction ( AbstractInstruction  $current,
AbstractInstruction  $other 
)
protected
Parameters
AbstractInstruction$current
AbstractInstruction$other
Returns
‪AbstractInstruction

Definition at line 265 of file SiteBasedTestTrait.php.

Referenced by TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\applyInstructions().

◆ mergeSiteConfiguration()

TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::mergeSiteConfiguration ( string  $identifier,
array  $overrides 
)
protected
Parameters
string$identifier
array$overrides

Definition at line 86 of file SiteBasedTestTrait.php.

Referenced by TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\assertGeneratedUriEquals(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest\assertPageArgumentsEquals(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\defaultExtbaseControllerActionNamesAreApplied(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\defaultExtbaseControllerActionNamesAreAppliedWithAdditionalNonMappedQueryArguments(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\localeModifierIsApplied(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest\pageTypeDecoratorIndexCanBePartOfSlug(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest\pageTypeDecoratorIsApplied(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\pageTypeDecoratorIsApplied(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\persistedAliasMapperIsApplied(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\persistedPatternMapperIsApplied(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest\routeIdentifiersAreResolved(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\staticRangeMapperIsApplied(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\staticValueMapperIsApplied(), and TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\unmappedPageTypeDecoratorIsAddedAsRegularQueryParam().

◆ resolveLanguagePreset()

mixed TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::resolveLanguagePreset ( string  $identifier)
protected
Parameters
string$identifier
Returns
‪mixed

Definition at line 223 of file SiteBasedTestTrait.php.

Referenced by TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait\buildLanguageConfiguration().

◆ writeSiteConfiguration()

TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait::writeSiteConfiguration ( string  $identifier,
array  $site = [],
array  $languages = [],
array  $errorHandling = [] 
)
protected
Parameters
string$identifier
array$site
array$languages
array$errorHandling

Definition at line 56 of file SiteBasedTestTrait.php.

Referenced by TYPO3\CMS\Frontend\Tests\Functional\XmlSitemap\XmlSitemapIndexTest\checkIfSiteMapIndexContainsPagesSitemap(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnNonTranslatedPageGerman(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\contentOnPartiallyTranslatedPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSiteResultsInNotFoundResponse(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSlugInsideSiteLanguageResultsInNotFoundResponse(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\invalidSlugOutsideSiteLanguageResultsInNotFoundResponse(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\onlyEnglishContentIsRenderedForDefaultLanguage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\onlyEnglishContentIsRenderedForDefaultLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithDomains(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithDomains(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithPaths(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithPaths(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageIsRenderedWithValidCacheHash(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageIsRenderedWithValidCacheHash(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestSendsNotFoundResponseWithInvalidCacheHashWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\pageRequestThrowsExceptionWithInvalidCacheHashWithoutHavingErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\pageRequestThrowsExceptionWithInvalidCacheHashWithoutHavingErrorHandling(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest\renderingOfDutchLanguage(), TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest\renderingOfDutchLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\requestsAreRedirectedWithoutHavingDefaultSiteLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageIsRendered(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageIsRendered(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingFluidErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPageErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithHavingPhpErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithoutHavingErrorHandling(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\restrictedPageSendsForbiddenResponseWithUnauthorizedVisitorWithoutHavingErrorHandling(), TYPO3\CMS\Core\Tests\Functional\MetaDataHandling\PluginsTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapRecordsTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioATest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioBTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioCTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioETest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugLinkGeneratorTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\HrefLang\HrefLangGeneratorTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerSiteRequestTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\TypoLinkGeneratorTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\EnhancerLinkGeneratorTest\setUp(), TYPO3\CMS\Seo\Tests\Functional\Canonical\CanonicalGeneratorTest\setUp(), TYPO3\CMS\FluidStyledContent\Tests\Functional\Rendering\SecureHtmlRenderingTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\MountPointTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\shortcutsAreRedirectedAndRenderFirstSubPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\shortcutsAreRedirectedAndRenderFirstSubPage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\shortcutsAreRedirectedToDefaultSiteLanguage(), TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SiteRequestTest\shortcutsAreRedirectedToFirstSubPage(), and TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\SlugSiteRequestTest\unconfiguredTypeNumResultsIn404Error().