‪TYPO3CMS  10.4
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

array $testExtensionsToLoad = array( 'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example' )
 
array $coreExtensionsToLoad = array( 'extbase', 'fluid' )
 
TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase Persistence Repository $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 110 of file TranslationTest.php.

◆ countReturnsCorrectNumberOfPostsInEnglishLanguage()

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

Test for fetching records with disabled overlay

Test:

Definition at line 151 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 132 of file TranslationTest.php.

◆ countReturnsCorrectNumberOfPostsInGreekLanguage()

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

Definition at line 169 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 431 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 463 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 406 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 210 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 232 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 257 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 517 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 321 of file TranslationTest.php.

◆ fetchingTranslatedPostByInClauseWithStrictLanguageSettings()

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

@dataProvider fetchingTranslatedPostByUidDataProvider

Test:

Definition at line 295 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 494 of file TranslationTest.php.

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

◆ fetchingTranslatedPostByUidDataProvider()

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

Definition at line 277 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 376 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

Minimal frontend environment to satisfy Extbase Typo3DbBackend

Definition at line 84 of file TranslationTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Context\LanguageAspect\OVERLAYS_OFF.

Referenced by TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest\setUp().

Member Data Documentation

◆ $coreExtensionsToLoad

array TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::$coreExtensionsToLoad = array( 'extbase', 'fluid' )
protected

Definition at line 41 of file TranslationTest.php.

◆ $objectManager

TYPO3 CMS Extbase Object ObjectManagerInterface TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest::$objectManager
protected

The object manager

Definition at line 45 of file TranslationTest.php.

◆ $postRepository

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

Definition at line 49 of file TranslationTest.php.

◆ $testExtensionsToLoad

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

Definition at line 37 of file TranslationTest.php.