function LocaleLocaleLookupTest::setUp
Same name in other branches
- 8.9.x core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php \Drupal\Tests\locale\Functional\LocaleLocaleLookupTest::setUp()
- 10 core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php \Drupal\Tests\locale\Functional\LocaleLocaleLookupTest::setUp()
- 11.x core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php \Drupal\Tests\locale\Functional\LocaleLocaleLookupTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ locale/ tests/ src/ Functional/ LocaleLocaleLookupTest.php, line 31
Class
- LocaleLocaleLookupTest
- Tests LocaleLookup.
Namespace
Drupal\Tests\locale\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Change the language default object to different values.
ConfigurableLanguage::createFromLangcode('fr')->save();
$this->config('system.site')
->set('default_langcode', 'fr')
->save();
$this->drupalLogin($this->rootUser);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.