SiteLocaleTest extends TestCase Uses MockeryPHPUnitIntegration
SiteLocaleTest class.
Tests SiteLocale
Table of Contents
$testLocale | ||
---|---|---|
setUp() | void | |
tearDown() | {@inheritdoc} | void |
testService() | void | |
testFakeConfig() | void | |
testGetAvailableIdentifiers() | void | |
testgetAvailable() | void | |
testgetAvailableOptions() | void | |
testIsAvailable() | void | |
testGetLocaleIndentifier() | Will return the default locale (fr_FR) | void |
testGetLocaleIndentifierWithDefaultIndentifier() | Will return en_US | void |
testGetLocaleIndentifierWithNonStringIndentifier() | Will return en_US | void |
testGetLocaleIndentifierWithCommaSeparatedString() | Test old method of defining the default locale | void |
testGetLocaleIndentifierWithCommaSeparatedStringReverseOrder() | Test old method of defining the default locale | void |
testGetLocaleIndentifierWithBrowserAndComplexLocale() | void | |
testGetLocaleIndentifierWithBrowserAndMultipleLocale() | void | |
testGetLocaleIndentifierWithBrowserAndLocaleInSecondPlace() | void | |
testGetLocaleIndentifierWithBrowserAndInvalidLocale() | void | |
testGetLocaleIndentifierWithBrowserAndNonExistingLocale() | void |
Properties
$testLocale
protected
mixed
$testLocale
= [
'fr_FR' => 'french',
// Legacy setting
'en_US' => true,
'es_ES' => false,
'it_IT' => null,
]
Methods
setUp()
public
setUp(
)
: void
tearDown()
{@inheritdoc}
public
tearDown(
)
: void
testService()
public
testService(
)
: void
testFakeConfig()
public
testFakeConfig(
)
: void
testGetAvailableIdentifiers()
public
testGetAvailableIdentifiers(
)
: void
Tags
testgetAvailable()
public
testgetAvailable(
)
: void
Tags
testgetAvailableOptions()
public
testgetAvailableOptions(
)
: void
Tags
testIsAvailable()
public
testIsAvailable(
)
: void
Tags
testGetLocaleIndentifier()
Will return the default locale (fr_FR)
public
testGetLocaleIndentifier(
)
: void
testGetLocaleIndentifierWithDefaultIndentifier()
Will return en_US
public
testGetLocaleIndentifierWithDefaultIndentifier(
)
: void
testGetLocaleIndentifierWithNonStringIndentifier()
Will return en_US
public
testGetLocaleIndentifierWithNonStringIndentifier(
)
: void
testGetLocaleIndentifierWithCommaSeparatedString()
Test old method of defining the default locale
public
testGetLocaleIndentifierWithCommaSeparatedString(
)
: void
testGetLocaleIndentifierWithCommaSeparatedStringReverseOrder()
Test old method of defining the default locale
public
testGetLocaleIndentifierWithCommaSeparatedStringReverseOrder(
)
: void
testGetLocaleIndentifierWithBrowserAndComplexLocale()
public
testGetLocaleIndentifierWithBrowserAndComplexLocale(
)
: void
testGetLocaleIndentifierWithBrowserAndMultipleLocale()
public
testGetLocaleIndentifierWithBrowserAndMultipleLocale(
)
: void
testGetLocaleIndentifierWithBrowserAndLocaleInSecondPlace()
public
testGetLocaleIndentifierWithBrowserAndLocaleInSecondPlace(
)
: void
testGetLocaleIndentifierWithBrowserAndInvalidLocale()
public
testGetLocaleIndentifierWithBrowserAndInvalidLocale(
)
: void
testGetLocaleIndentifierWithBrowserAndNonExistingLocale()
public
testGetLocaleIndentifierWithBrowserAndNonExistingLocale(
)
: void