You are here

protected function SettingsFormTest::setUp in Login And Logout Redirect Per Role 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/SettingsFormTest.php, line 50

Class

SettingsFormTest
Tests the Redirect URL settings form.

Namespace

Drupal\Tests\login_redirect_per_role\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->webUser = $this
    ->createUser();
  $this->adminRole = $this
    ->drupalCreateRole([
    'administer site configuration',
  ]);
  $this->adminUser = $this
    ->createUser([], NULL, FALSE, [
    'roles' => $this->adminRole,
  ]);
}