PHP Class eZ\Publish\Core\Helper\Tests\TranslationHelperTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Exibir arquivo Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getTranslatedField ( array $prioritizedLanguages, string $expectedLocale )
getTranslatedFieldProvider ( )
getTranslatedNameProvider ( )
getTranslationSiteAccessProvider ( )
testGetAvailableLanguagesWithTranslationSiteAccesses ( )
testGetAvailableLanguagesWithoutTranslationSiteAccesses ( )
testGetTranslatedName ( array $prioritizedLanguages, string $expectedLocale )
testGetTranslatedNameByContentInfo ( array $prioritizedLanguages, string $expectedLocale )
testGetTranslatedNameByContentInfoForcedLanguage ( )
testGetTranslatedNameByContentInfoForcedLanguageMainLanguage ( )
testGetTranslatedNameForcedLanguage ( )
testGetTranslationSiteAccess ( $language, array $translationSiteAccesses, array $relatedSiteAccesses, $expectedResult )
testGetTranslationSiteAccessUnkownLanguage ( )

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
generateContent ( ) : Content
generateVersionInfo ( ) : eZ\Publish\API\Repository\Values\Content\VersionInfo

Method Details

getTranslatedField() public method

public getTranslatedField ( array $prioritizedLanguages, string $expectedLocale )
$prioritizedLanguages array
$expectedLocale string

getTranslatedFieldProvider() public method

getTranslatedNameProvider() public method

getTranslationSiteAccessProvider() public method

setUp() protected method

protected setUp ( )

testGetAvailableLanguagesWithTranslationSiteAccesses() public method

testGetAvailableLanguagesWithoutTranslationSiteAccesses() public method

testGetTranslatedName() public method

public testGetTranslatedName ( array $prioritizedLanguages, string $expectedLocale )
$prioritizedLanguages array
$expectedLocale string

testGetTranslatedNameByContentInfo() public method

public testGetTranslatedNameByContentInfo ( array $prioritizedLanguages, string $expectedLocale )
$prioritizedLanguages array
$expectedLocale string

testGetTranslatedNameByContentInfoForcedLanguage() public method

testGetTranslatedNameByContentInfoForcedLanguageMainLanguage() public method

testGetTranslatedNameForcedLanguage() public method

testGetTranslationSiteAccess() public method

public testGetTranslationSiteAccess ( $language, array $translationSiteAccesses, array $relatedSiteAccesses, $expectedResult )
$translationSiteAccesses array
$relatedSiteAccesses array

testGetTranslationSiteAccessUnkownLanguage() public method