function LanguageNegotiationSessionTest::setUp
Same name in other branches
- 9 core/modules/language/tests/src/Functional/LanguageNegotiationSessionTest.php \Drupal\Tests\language\Functional\LanguageNegotiationSessionTest::setUp()
- 10 core/modules/language/tests/src/Functional/LanguageNegotiationSessionTest.php \Drupal\Tests\language\Functional\LanguageNegotiationSessionTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ language/ tests/ src/ Functional/ LanguageNegotiationSessionTest.php, line 37
Class
- LanguageNegotiationSessionTest
- Tests the session language negotiation method.
Namespace
Drupal\Tests\language\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create a new user with permission to manage the languages.
$this->adminUser = $this->drupalCreateUser([
'administer languages',
]);
$this->drupalLogin($this->adminUser);
ConfigurableLanguage::createFromLangcode('fr')->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.