You are here

protected function UserAdminLanguageTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Functional/UserAdminLanguageTest.php \Drupal\Tests\user\Functional\UserAdminLanguageTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/user/tests/src/Functional/UserAdminLanguageTest.php, line 41

Class

UserAdminLanguageTest
Tests users' ability to change their own administration language.

Namespace

Drupal\Tests\user\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // User to add and remove language.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer languages',
    'access administration pages',
  ]);

  // User to check non-admin access.
  $this->regularUser = $this
    ->drupalCreateUser();
}