\MultilingualModelAsControllerTest
Synopsis
class MultilingualModelAsControllerTest
extends FunctionalTest
{
- // members
- public static string $fixture_file = 'MultilingualTest.yml';
- private $origLocale;
- private $origCurrentLocale;
- private $origAllowedLocales;
- private $origi18nLocale;
- private $origCookieLocale;
- private $origAcceptLanguage;
- private $origLocaleRoutingEnabled;
- private $origDashLocaleEnabled;
- private $origCountryOnly;
- private $origFRSubtag;
- protected boolean $autoFollowRedirection = false;
- // methods
- public void setUp()
- public void tearDown()
- public void testMultilingualRequired()
- public void testCrossLangNotFound()
- public void testEnglishShouldBeRoot()
- public void testFrenchShouldBeRoot()
- public void testEnglishRouting()
- public void testFrenchRouting()
- public void testEnglishLocaleRouting()
- public void testFrenchLocaleRouting()
- public void testEnglishDashLocaleRouting()
- public void testFrenchDashLocaleRouting()
- public void testCountryRouting()
- public void testCanadaRouting()
Hierarchy
Extends
- FunctionalTest
Members
private
- $origAcceptLanguage
- $origAllowedLocales
- $origCookieLocale
- $origCountryOnly
- $origCurrentLocale
- $origDashLocaleEnabled
- $origFRSubtag
- $origLocale
- $origLocaleRoutingEnabled
- $origi18nLocale
protected
- $autoFollowRedirection
public
- $fixture_file
Methods
public
- setUp()
- tearDown()
- testCanadaRouting()
- testCountryRouting()
- testCrossLangNotFound() — Tests to ensure that loading a page not on the current language returns a page not found when accessing it via the wrong url
- testEnglishDashLocaleRouting()
- testEnglishLocaleRouting()
- testEnglishRouting()
- testEnglishShouldBeRoot() — Tests to see if the english home page is the root url and the french home page is not for english browsers
- testFrenchDashLocaleRouting()
- testFrenchLocaleRouting()
- testFrenchRouting()
- testFrenchShouldBeRoot() — Tests to see if the french home page is the root url and the english home page is not for french browsers
- testMultilingualRequired() — Verifies that the language/locale is required on the url