class TranslationControllerTest extends BaseUnitTest

Class TranslationControllerTest

Properties

protected $tester
protected I18nMock $i18nMock
protected TranslationControllerHelper $translationHelper

Methods

_before()

No description

_inject(I18nMock $i18nMock, TranslationControllerHelper $translationHelper)

No description

array
getTranslatedProvider()

No description

testGetTranslated($config, $text, $target, $expected)

Test to run through the core functionality of the translation Module.

testInstanceIsAvailable()

Basic instance test

testIsValidLocale($config, $locale, $expected)

No description

testIsValidTranslationModelName($value, $expected)

Basic function test

testProcessDaemonDefault()

Complex test of main translation functionality and mocked API (instance setting: ondemand = false)

testProcessDaemonOndemand()

Complex test of main translation functionality and mocked API (instance setting: ondemand = true)

array
translationModelnameProvider()

No description

array
validLocaleProvider()

No description

Details

at line 43
protected _before()

No description

Exceptions

ReflectionException

at line 31
_inject(I18nMock $i18nMock, TranslationControllerHelper $translationHelper)

No description

Parameters

I18nMock $i18nMock
TranslationControllerHelper $translationHelper

at line 255
array getTranslatedProvider()

No description

Return Value

array

at line 227
testGetTranslated($config, $text, $target, $expected)

Test to run through the core functionality of the translation Module.

Parameters

$config
$text
$target
$expected

Exceptions

Exception

at line 51
testInstanceIsAvailable()

Basic instance test

at line 70
testIsValidLocale($config, $locale, $expected)

No description

Parameters

$config
$locale
$expected

at line 61
testIsValidTranslationModelName($value, $expected)

Basic function test

Parameters

$value
$expected

at line 170
testProcessDaemonDefault()

Complex test of main translation functionality and mocked API (instance setting: ondemand = false)

at line 115
testProcessDaemonOndemand()

Complex test of main translation functionality and mocked API (instance setting: ondemand = true)

at line 101
array translationModelnameProvider()

No description

Return Value

array

at line 83
array validLocaleProvider()

No description

Return Value

array