function DevelSwitchUserTest::setUp

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

Set up test.

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();
}