function UserRoleAdminTest::setUp
Same name in other branches
- 9 core/modules/user/tests/src/Functional/UserRoleAdminTest.php \Drupal\Tests\user\Functional\UserRoleAdminTest::setUp()
- 8.9.x core/modules/user/tests/src/Functional/UserRoleAdminTest.php \Drupal\Tests\user\Functional\UserRoleAdminTest::setUp()
- 11.x 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\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this->drupalCreateUser([
'administer permissions',
'administer users',
]);
$this->drupalPlaceBlock('local_tasks_block', [
'id' => 'test_role_admin_test_local_tasks_block',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.