function DevelSwitchUserTest::setUp
Same name in other branches
- 4.x tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setUp()
- 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\FunctionalCode
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();
}