You are here

protected function LanguageNegotiationSessionTest::setUp in Drupal 10

File

core/modules/language/tests/src/Functional/LanguageNegotiationSessionTest.php, line 40

Class

LanguageNegotiationSessionTest
Tests the session language negotiation method.

Namespace

Drupal\Tests\language\Functional

Code

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();
}