‪TYPO3CMS  9.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 ()
 
 fetchingPostsReturnsGreekPostsWithFallback ()
 
 fetchingPostsReturnsGreekPostsWithHideNonTranslated ()
 
 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 27 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 109 of file TranslationTest.php.

◆ countReturnsCorrectNumberOfPostsInEnglishLanguage()

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

Test for fetching records with disabled overlay

Test:

Definition at line 152 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 171 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 347 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 378 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 322 of file TranslationTest.php.

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

◆ fetchingPostByTagName()

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

◆ 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 216 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 241 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 432 of file TranslationTest.php.

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

◆ 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 408 of file TranslationTest.php.

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

◆ 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 291 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 83 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 35 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 39 of file TranslationTest.php.

◆ $postRepository

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

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