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

Public Member Functions

array resolvablePagesDataProvider ()
 
 resolvedPagesMatchScopes (string $url, array $scopes)
 
array pageNotFoundDataProvider ()
 
 pageNotFound (string $url)
 
array menuDataProvider ()
 
 pageMenuIsRendered (string $url, array $expectedMenu)
 
 languageMenuHasLanguageShortcutsWithLanguageSpecificUrls ()
 

Protected Member Functions

 setUp ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\AbstractLocalizedPagesTestCase
 setUpDatabaseWithYamlPayload (string $pathToYamlFile)
 
 assertScopes (string $url, array $scopes)
 
 assertResponseStatusCode (string $url)
 
 assertMenu (string $url, array $expectation)
 
 createLanguageMenu (string $url)
 
- ‪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\LocalizedPageRendering\AbstractLocalizedPagesTestCase
const LANGUAGE_PRESETS
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase
const LANGUAGE_PRESETS
 
 $configurationToUseInTestInstance
 
 $coreExtensionsToLoad = array( 'workspaces' )
 

Detailed Description

Scenario prerequisites: Site configuration has localizations default language: EN first language: DE no fallbacks configured second language: DE-CH fallback to DE, EN

Home page is not localized into any language and has l18n_cfg=2 set "About" page is localized into DE and has l18n_cfg=2 set "Products" page is localized into DE-CH and has l18n_cfg=2 set "Company" page is of type "default" in EN and of type "shortcut" in DE, redirecting to page "About"

Scenario expectations: Calling home page in EN renders page in EN Calling home page in DE returns a 404 response Calling home page in DE-CH returns a 404 response because fallback chain is not processed due to l18n_cfg=2

Calling "about" page in EN renders page in EN Calling "about" page in DE renders page in DE Calling "about" page in DE-CH renders page in DE-CH

Calling "company" page in EN renders page in EN Calling "company" page in DE redirects to page "About" in DE

Definition at line 46 of file ScenarioDTest.php.

Member Function Documentation

◆ languageMenuHasLanguageShortcutsWithLanguageSpecificUrls()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest::languageMenuHasLanguageShortcutsWithLanguageSpecificUrls ( )

◆ menuDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest::menuDataProvider ( )
Returns
‪array

Definition at line 142 of file ScenarioDTest.php.

◆ pageMenuIsRendered()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest::pageMenuIsRendered ( string  $url,
array  $expectedMenu 
)
Parameters
string$url
array$expectedMenu
Test:
‪@dataProvider menuDataProvider

Definition at line 191 of file ScenarioDTest.php.

References TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\AbstractLocalizedPagesTestCase\assertMenu().

◆ pageNotFound()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest::pageNotFound ( string  $url)
Parameters
string$url
Test:
‪@dataProvider pageNotFoundDataProvider

Definition at line 134 of file ScenarioDTest.php.

References TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\AbstractLocalizedPagesTestCase\assertResponseStatusCode().

◆ pageNotFoundDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest::pageNotFoundDataProvider ( )
Returns
‪array

Definition at line 113 of file ScenarioDTest.php.

◆ resolvablePagesDataProvider()

array TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest::resolvablePagesDataProvider ( )
Returns
‪array

Definition at line 68 of file ScenarioDTest.php.

◆ resolvedPagesMatchScopes()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioDTest::resolvedPagesMatchScopes ( string  $url,
array  $scopes 
)
Parameters
string$url
array$scopes
Test:
‪@dataProvider resolvablePagesDataProvider

Definition at line 105 of file ScenarioDTest.php.

References TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\AbstractLocalizedPagesTestCase\assertScopes().

◆ setUp()