\MultilingualRootURLControllerTest
Synopsis
class MultilingualRootURLControllerTest
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 testEnglishLangRootRouting()
- public void testFrenchLangRootRouting()
- public void testEnglishLocaleRootRouting()
- public void testFrenchLocaleRootRouting()
- public void testEnglishDashLocaleRootRouting()
- public void testFrenchDashLocaleRootRouting()
- public void testEnglishGetHomepageLink()
- public void testFrenchGetHomepageLink()
- public void testGetCountryHomePage()
- public void testGetCanadaHomePage()
Hierarchy
Extends
- FunctionalTest
Members
private
- $origAcceptLanguage
- $origAllowedLocales
- $origCookieLocale
- $origCountryOnly
- $origCurrentLocale
- $origDashLocaleEnabled
- $origFRSubtag
- $origLocale
- $origLocaleRoutingEnabled
- $origi18nLocale
protected
- $autoFollowRedirection
public
- $fixture_file
Methods
public
- setUp()
- tearDown()
- testEnglishDashLocaleRootRouting() — Tests to ensure that the site redirects to the default locale root url when the user hits the site root and the MultilingualRootURLController.UseLocaleURL is set to true and MultilingualRootURLController.UseDashLocale is set to true
- testEnglishGetHomepageLink() — Verifies the correct home page is detected
- testEnglishLangRootRouting() — Tests to ensure that the site redirects to the default language root url when the user hits the site root
- testEnglishLocaleRootRouting() — Tests to ensure that the site redirects to the default locale root url when the user hits the site root and the MultilingualRootURLController.UseLocaleURL is set to true
- testFrenchDashLocaleRootRouting() — Tests to ensure that the site redirects to the french locale root url when the user hits the site root and the users accept language is french first with the MultilingualRootURLController.UseLocaleURL is set to true and MultilingualRootURLController.UseDashLocale is set to true
- testFrenchGetHomepageLink() — Verifies the correct home page is detected for the french locale
- testFrenchLangRootRouting() — Tests to ensure that the site redirects to the french language root url when the user hits the site root and the users accept language is french first
- testFrenchLocaleRootRouting() — Tests to ensure that the site redirects to the french locale root url when the user hits the site root and the users accept language is french first with the MultilingualRootURLController.UseLocaleURL is set to true
- testGetCanadaHomePage()
- testGetCountryHomePage()