You are here

protected function DevelSwitchUserTest::setUp in Devel 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setUp()
  2. 8.2 tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setUp()
  3. 4.x tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setUp()

Set up test.

Overrides BrowserTestBase::setUp

File

tests/src/Functional/DevelSwitchUserTest.php, line 53

Class

DevelSwitchUserTest
Tests switch user.

Namespace

Drupal\Tests\devel\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->block = $this
    ->drupalPlaceBlock('devel_switch_user', [
    'id' => 'switch-user',
  ]);
  $this->develUser = $this
    ->drupalCreateUser([
    'access devel information',
    'switch users',
  ]);
  $this->switchUser = $this
    ->drupalCreateUser([
    'switch users',
  ]);
  $this->webUser = $this
    ->drupalCreateUser();
}