You are here

protected function UserRoleAdminTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/user/tests/src/Functional/UserRoleAdminTest.php, line 38

Class

UserRoleAdminTest
Tests adding, editing and deleting user roles and changing role weights.

Namespace

Drupal\Tests\user\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer permissions',
    'administer users',
  ]);
  $this
    ->drupalPlaceBlock('local_tasks_block');
}