‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest:
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

 resolvedPagesMatchScopes (string $url, array $scopes)
 
 pageNotFound (string $url)
 
 pageMenuIsRendered (string $url, array $expectedMenu)
 

Static Public Member Functions

static resolvablePagesDataProvider ()
 
static pageNotFoundDataProvider ()
 
static menuDataProvider ()
 

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\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
 writeSiteConfiguration (string $identifier, array $site=[], array $languages=[], array $errorHandling=[])
 
 mergeSiteConfiguration (string $identifier, array $overrides)
 
 buildSiteConfiguration (int $rootPageId, string $base='')
 
 buildDefaultLanguageConfiguration (string $identifier, string $base)
 
 buildLanguageConfiguration (string $identifier, string $base, array $fallbackIdentifiers=[], string $fallbackType=null)
 
 buildErrorHandlingConfiguration (string $handler, array $codes)
 
mixed resolveLanguagePreset (string $identifier)
 
 applyInstructions (InternalRequest $request, AbstractInstruction ... $instructions)
 
 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
 

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=3 set "About" page is localized into DE and has l18n_cfg=3 set "Products" page is localized into DE-CH, DE and has l18n_cfg=3 set

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

Calling "about" page in EN returns a 404 response due to l18n_cfg=3 Calling "about" page in DE renders page in DE Calling "about" page in DE-CH returns a 404 response because fallback chain is not processed due to l18n_cfg=3

Calling "products" page in EN returns a 404 response due to l18n_cfg=3 Calling "products" page in DE renders page in DE Calling "products" page in DE-CH renders page in DE-CH

Definition at line 46 of file ScenarioFTest.php.

Member Function Documentation

◆ menuDataProvider()

static TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest::menuDataProvider ( )
static

Definition at line 131 of file ScenarioFTest.php.

◆ pageMenuIsRendered()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest::pageMenuIsRendered ( string  $url,
array  $expectedMenu 
)

◆ pageNotFound()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest::pageNotFound ( string  $url)

◆ pageNotFoundDataProvider()

static TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest::pageNotFoundDataProvider ( )
static

Definition at line 98 of file ScenarioFTest.php.

◆ resolvablePagesDataProvider()

static TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest::resolvablePagesDataProvider ( )
static

Definition at line 65 of file ScenarioFTest.php.

◆ resolvedPagesMatchScopes()

TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\LocalizedPageRendering\ScenarioFTest::resolvedPagesMatchScopes ( string  $url,
array  $scopes 
)

◆ setUp()