‪TYPO3CMS  9.5
TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationLegacyTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationLegacyTest:

Public Member Functions

 countReturnsCorrectNumberOfPosts ()
 
 countReturnsCorrectNumberOfPostsInEnglishLanguageForStrictMode ()
 
 countReturnsCorrectNumberOfPostsInEnglishLanguage ()
 
 countReturnsCorrectNumberOfPostsInGreekLanguage ()
 
 fetchingPostsReturnsEnglishPostsWithFallback ()
 
 fetchingPostsReturnsGreekPostsWithFallback ()
 
 fetchingPostsReturnsGreekPostsWithHideNonTranslated ()
 
 orderingByTitleRespectsEnglishTitles ()
 
 fetchingHiddenPostsWithIgnoreEnableField ()
 
 fetchingHiddenPostsReturnsHiddenOverlay ()
 
 fetchingTranslatedPostByTitle ()
 
 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 TranslationLegacyTest.php.

Member Function Documentation

◆ countReturnsCorrectNumberOfPosts()

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

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

Test:

Definition at line 110 of file TranslationLegacyTest.php.

◆ countReturnsCorrectNumberOfPostsInEnglishLanguage()

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

Test for fetching records with disabled overlay

Test:

Definition at line 153 of file TranslationLegacyTest.php.

◆ countReturnsCorrectNumberOfPostsInEnglishLanguageForStrictMode()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationLegacyTest::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 133 of file TranslationLegacyTest.php.

◆ countReturnsCorrectNumberOfPostsInGreekLanguage()

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

Definition at line 171 of file TranslationLegacyTest.php.

◆ fetchingHiddenPostsReturnsHiddenOverlay()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationLegacyTest::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. This is related to https://forge.typo3.org/issues/68672

This tests documents current, buggy behaviour!

Test:

Definition at line 326 of file TranslationLegacyTest.php.

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

◆ fetchingHiddenPostsWithIgnoreEnableField()

TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationLegacyTest::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 298 of file TranslationLegacyTest.php.

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

◆ fetchingPostByTagName()

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

◆ fetchingPostsReturnsEnglishPostsWithFallback()

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

◆ fetchingPostsReturnsGreekPostsWithFallback()

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

This tests shows overlays in action

Test:

Definition at line 217 of file TranslationLegacyTest.php.

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

◆ fetchingPostsReturnsGreekPostsWithHideNonTranslated()

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

This tests shows overlay 'hideNonTranslated' in action

Test:

Definition at line 244 of file TranslationLegacyTest.php.

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

◆ fetchingTranslatedPostByTagName()

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

◆ fetchingTranslatedPostByTitle()

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

Test checking if we can query db records by translated fields

Test:

Definition at line 354 of file TranslationLegacyTest.php.

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

◆ orderingByTitleRespectsEnglishTitles()

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

◆ setUp()

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

◆ setUpBasicFrontendEnvironment()

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

Minimal frontend environment to satisfy Extbase Typo3DbBackend

Definition at line 84 of file TranslationLegacyTest.php.

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

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

Member Data Documentation

◆ $coreExtensionsToLoad

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

Definition at line 35 of file TranslationLegacyTest.php.

◆ $objectManager

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

The object manager

Definition at line 39 of file TranslationLegacyTest.php.

◆ $postRepository

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

Definition at line 43 of file TranslationLegacyTest.php.

◆ $testExtensionsToLoad

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

Definition at line 31 of file TranslationLegacyTest.php.