‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest:
TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait

Public Member Functions

 onlyEnglishContentIsRenderedForDefaultLanguage ()
 
 renderingOfDanishLanguage (string $fallbackType, array $visibleRecords)
 
 contentOnNonTranslatedPageGerman (string $fallbackType, array $fallbackChain, array $visibleRecords, int $statusCode=200)
 
 contentOnPartiallyTranslatedPage (string $fallbackType, array $fallbackChain, array $visibleRecordHeaders)
 

Static Public Member Functions

static danishDataProvider ()
 
static contentOnNonTranslatedPageDataProvider ()
 
static contentOnPartiallyTranslatedPageDataProvider ()
 

Protected Member Functions

 setUp ()
 
- ‪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)
 

Protected Attributes

array $testExtensionsToLoad
 
array $pathsToLinkInTestInstance
 

Private Member Functions

 getNonVisibleHeaders (array $visibleHeaders)
 
 getNonVisibleFileTitles (array $visibleTitles)
 
 getNonVisibleCategoryTitles (array $visibleTitles)
 

Private Attributes

const VALUE_PageId = 89
 
const TABLE_Content = 'tt_content'
 
const LANGUAGE_PRESETS
 

Additional Inherited Members

- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
static failIfArrayIsNotEmpty (array $items)
 

Detailed Description

Test case documenting an Extbase translation handling of tt_content consistent with Site Handling.

This test has the same scenarios as in the TypoScript version:

See also
‪\TYPO3\CMS\Frontend\Tests\Functional\Rendering\LocalizedSiteContentRenderingTest

Definition at line 37 of file TranslatedSiteContentTest.php.

Member Function Documentation

◆ contentOnNonTranslatedPageDataProvider()

static TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::contentOnNonTranslatedPageDataProvider ( )
static

Definition at line 317 of file TranslatedSiteContentTest.php.

◆ contentOnNonTranslatedPageGerman()

◆ contentOnPartiallyTranslatedPage()

◆ contentOnPartiallyTranslatedPageDataProvider()

static TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::contentOnPartiallyTranslatedPageDataProvider ( )
static

Definition at line 534 of file TranslatedSiteContentTest.php.

◆ danishDataProvider()

static TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::danishDataProvider ( )
static

Danish language has pages record and some content elements are translated

Definition at line 191 of file TranslatedSiteContentTest.php.

◆ getNonVisibleCategoryTitles()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::getNonVisibleCategoryTitles ( array  $visibleTitles)
private

◆ getNonVisibleFileTitles()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::getNonVisibleFileTitles ( array  $visibleTitles)
private

◆ getNonVisibleHeaders()

◆ onlyEnglishContentIsRenderedForDefaultLanguage()

◆ renderingOfDanishLanguage()

◆ setUp()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::setUp ( )
protected

Definition at line 56 of file TranslatedSiteContentTest.php.

Member Data Documentation

◆ $pathsToLinkInTestInstance

array TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::$pathsToLinkInTestInstance
protected
Initial value:
= [
'typo3/sysext/frontend/Tests/Functional/Fixtures/Images' => 'fileadmin/user_upload',
]

Definition at line 43 of file TranslatedSiteContentTest.php.

◆ $testExtensionsToLoad

array TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::$testExtensionsToLoad
protected
Initial value:
= [
'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example',
]

Definition at line 40 of file TranslatedSiteContentTest.php.

◆ LANGUAGE_PRESETS

const TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::LANGUAGE_PRESETS
private
Initial value:
= [
'EN' => ['id' => 0, 'title' => 'English', 'locale' => 'en_US.UTF8'],
'DA' => ['id' => 1, 'title' => 'Dansk', 'locale' => 'da_DK.UTF8'],
'DE' => ['id' => 2, 'title' => 'Deutsch', 'locale' => 'de_DE.UTF8'],
'PL' => ['id' => 3, 'title' => 'Polski', 'locale' => 'pl_PL.UTF8'],
]

Definition at line 49 of file TranslatedSiteContentTest.php.

◆ TABLE_Content

const TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::TABLE_Content = 'tt_content'
private

Definition at line 48 of file TranslatedSiteContentTest.php.

◆ VALUE_PageId

const TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslatedSiteContentTest::VALUE_PageId = 89
private

Definition at line 47 of file TranslatedSiteContentTest.php.