‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest:

Public Member Functions

 countReturnsCorrectNumberOfPosts ()
 
 countReturnsCorrectNumberOfPostsInEnglishLanguage ()
 
 countReturnsCorrectNumberOfPostsInGreekLanguage ()
 
 fetchingPostsReturnsEnglishPostsWithFallback ()
 
 fetchingPostsByInClauseReturnsDefaultPostsWithFallback ()
 
 fetchingPostsReturnsGreekPostsWithFallback ()
 
 fetchingPostsReturnsGreekPostsWithHideNonTranslated ()
 
 fetchingTranslatedPostByInClauseWithStrictLanguageSettings (array $input, array $expectedTitles)
 
 fetchingTranslatedPostByEqualsUidClauseWithStrictLanguageSettings (array $input, array $expectedTitles)
 
 orderingByTitleRespectsEnglishTitles ()
 
 orderingByBlogTitle ()
 
 fetchingHiddenPostsWithIgnoreEnableField ()
 
 fetchingHiddenPostsReturnsHiddenOverlay ()
 
 fetchingHiddenPostsReturnsHiddenOverlayOverlayEnabled ()
 
 fetchingTranslatedPostByTitle ()
 
 fetchingTranslatedPostByBlogTitle ()
 
 fetchingPostByTagName ()
 
 fetchingTranslatedPostByTagName ()
 

Static Public Member Functions

static fetchingTranslatedPostByUidDataProvider ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

array $testExtensionsToLoad
 

Detailed Description

Definition at line 35 of file TranslationTest.php.

Member Function Documentation

◆ countReturnsCorrectNumberOfPosts()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::countReturnsCorrectNumberOfPosts ( )

Tests if repository returns correct number of posts in the default language

Definition at line 68 of file TranslationTest.php.

References TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_OFF.

◆ countReturnsCorrectNumberOfPostsInEnglishLanguage()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::countReturnsCorrectNumberOfPostsInEnglishLanguage ( )

Test for fetching records with disabled overlay

Definition at line 83 of file TranslationTest.php.

References TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_OFF.

◆ countReturnsCorrectNumberOfPostsInGreekLanguage()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::countReturnsCorrectNumberOfPostsInGreekLanguage ( )

◆ fetchingHiddenPostsReturnsHiddenOverlay()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingHiddenPostsReturnsHiddenOverlay ( )

This test checks whether setIgnoreEnableFields(true) affects translated record too. It's expected that when ignoring enable fields, the hidden translated record is shown.

Definition at line 301 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING, and TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_OFF.

◆ fetchingHiddenPostsReturnsHiddenOverlayOverlayEnabled()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingHiddenPostsReturnsHiddenOverlayOverlayEnabled ( )

This test checks whether setIgnoreEnableFields(true) affects translated record too. It's expected that when ignoring enable fields, the hidden translated record is shown. This is related to https://forge.typo3.org/issues/68672

This tests documents current, buggy behaviour!

Definition at line 327 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING, and TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_MIXED.

◆ fetchingHiddenPostsWithIgnoreEnableField()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingHiddenPostsWithIgnoreEnableField ( )

This test checks whether setIgnoreEnableFields(true) affects the query It's expected that when ignoring enable fields, the hidden record is also returned. This is related to https://forge.typo3.org/issues/68672

Definition at line 280 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING, and TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_ON.

◆ fetchingPostByTagName()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingPostByTagName ( )

◆ fetchingPostsByInClauseReturnsDefaultPostsWithFallback()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingPostsByInClauseReturnsDefaultPostsWithFallback ( )

◆ fetchingPostsReturnsEnglishPostsWithFallback()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingPostsReturnsEnglishPostsWithFallback ( )

◆ fetchingPostsReturnsGreekPostsWithFallback()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingPostsReturnsGreekPostsWithFallback ( )

◆ fetchingPostsReturnsGreekPostsWithHideNonTranslated()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingPostsReturnsGreekPostsWithHideNonTranslated ( )

This tests shows overlay 'hideNonTranslated' in action

Definition at line 160 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING, and TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_ON.

◆ fetchingTranslatedPostByBlogTitle()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingTranslatedPostByBlogTitle ( )

Test checking if we can query db records by value of the child object Note that only child objects from language 0 are taken into account

Definition at line 372 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING, and TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_OFF.

◆ fetchingTranslatedPostByEqualsUidClauseWithStrictLanguageSettings()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingTranslatedPostByEqualsUidClauseWithStrictLanguageSettings ( array  $input,
array  $expectedTitles 
)

◆ fetchingTranslatedPostByInClauseWithStrictLanguageSettings()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingTranslatedPostByInClauseWithStrictLanguageSettings ( array  $input,
array  $expectedTitles 
)

◆ fetchingTranslatedPostByTagName()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingTranslatedPostByTagName ( )

◆ fetchingTranslatedPostByTitle()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingTranslatedPostByTitle ( )

Test checking if we can query db records by translated fields

Definition at line 352 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING, and TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_OFF.

◆ fetchingTranslatedPostByUidDataProvider()

static TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::fetchingTranslatedPostByUidDataProvider ( )
static

Definition at line 175 of file TranslationTest.php.

◆ orderingByBlogTitle()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::orderingByBlogTitle ( )

This test shows that ordering by blog title works however the default language blog title is used

Definition at line 256 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING, and TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_OFF.

◆ orderingByTitleRespectsEnglishTitles()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::orderingByTitleRespectsEnglishTitles ( )

◆ setUp()

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

Member Data Documentation

◆ $testExtensionsToLoad

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

Definition at line 37 of file TranslationTest.php.