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

Public Member Functions

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

Protected Member Functions

 setUp ()
 
 setUpBasicFrontendEnvironment ()
 

Protected Attributes

 $testExtensionsToLoad = array( 'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example' )
 
PostRepository $postRepository
 

Detailed Description

Definition at line 33 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

Test:

Definition at line 102 of file TranslationTest.php.

◆ countReturnsCorrectNumberOfPostsInEnglishLanguage()

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

Test for fetching records with disabled overlay

Test:

Definition at line 143 of file TranslationTest.php.

◆ countReturnsCorrectNumberOfPostsInEnglishLanguageForStrictMode()

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

This test shows the difference between old and new rendering languageMode is now ignored, overlay is false, so this test is the same as countReturnsCorrectNumberOfPostsInEnglishLanguage

Test:

Definition at line 124 of file TranslationTest.php.

◆ countReturnsCorrectNumberOfPostsInGreekLanguage()

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

Definition at line 161 of file TranslationTest.php.

◆ 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.

Test:

Definition at line 423 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ 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!

Test:

Definition at line 455 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ 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

Test:

Definition at line 398 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ fetchingPostByTagName()

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

◆ fetchingPostsByInClauseReturnsDefaultPostsWithFallback()

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

Definition at line 202 of file TranslationTest.php.

◆ fetchingPostsReturnsEnglishPostsWithFallback()

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

◆ fetchingPostsReturnsGreekPostsWithFallback()

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

This tests shows overlays in action

Test:

Definition at line 224 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ fetchingPostsReturnsGreekPostsWithHideNonTranslated()

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

This tests shows overlay 'hideNonTranslated' in action

Test:

Definition at line 249 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ 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

Test:

Definition at line 509 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ fetchingTranslatedPostByEqualsUidClauseWithStrictLanguageSettings()

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

@dataProvider fetchingTranslatedPostByUidDataProvider

Test:

Definition at line 313 of file TranslationTest.php.

◆ fetchingTranslatedPostByInClauseWithStrictLanguageSettings()

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

@dataProvider fetchingTranslatedPostByUidDataProvider

Test:

Definition at line 287 of file TranslationTest.php.

◆ 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

Test:

Definition at line 486 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ fetchingTranslatedPostByUidDataProvider()

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

Definition at line 269 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

Test:

Definition at line 368 of file TranslationTest.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ orderingByTitleRespectsEnglishTitles()

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

◆ setUp()

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

◆ setUpBasicFrontendEnvironment()

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

Member Data Documentation

◆ $postRepository

PostRepository TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::$postRepository
protected

Definition at line 39 of file TranslationTest.php.

◆ $testExtensionsToLoad

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::$testExtensionsToLoad = array( 'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example' )
protected

Definition at line 35 of file TranslationTest.php.