\MultilingualControllerTest
Synopsis
class MultilingualControllerTest
extends FunctionalTest
{
- // members
- private $origLocale;
- private $origCurrentLocale;
- private $origAllowedLocales;
- private $origi18nLocale;
- private $origCookieLocale;
- private $origAcceptLanguage;
- private $origLocaleRoutingEnabled;
- private $origDashLocaleEnabled;
- private $origCountryOnly;
- protected boolean $autoFollowRedirection = false;
- // methods
- public void setUp()
- public void tearDown()
- public void testLanguageInURL()
- public void testLocaleInURL()
- public void testDashLocaleInURL()
- public void testCountryInURL()
- public void testAutoDetectLanguage()
- public void testInvalidLanguageURL()
Hierarchy
Extends
- FunctionalTest
Members
private
- $origAcceptLanguage
- $origAllowedLocales
- $origCookieLocale
- $origCountryOnly
- $origCurrentLocale
- $origDashLocaleEnabled
- $origLocale
- $origLocaleRoutingEnabled
- $origi18nLocale
protected
- $autoFollowRedirection
Methods
public
- setUp()
- tearDown()
- testAutoDetectLanguage() — Tests to see if the controller responds correctly if the language is in the url
- testCountryInURL() — Tests to see if the controller responds correctly if the county is in the url
- testDashLocaleInURL() — Tests to see if the controller responds correctly if the dashed locale is in the url
- testInvalidLanguageURL() — Tests to see if the controller responds correctly if the language is in the url
- testLanguageInURL() — Tests to see if the controller responds correctly if the language is in the url
- testLocaleInURL() — Tests to see if the controller responds correctly if the locale is in the url