function DevelSwitchUserTest::setUp
Same name in other branches
- 5.x tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setUp()
Set up test.
Overrides DevelBrowserTestBase::setUp
File
-
tests/
src/ Functional/ DevelSwitchUserTest.php, line 45
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',
'label' => 'Switch Hit',
]);
$this->develUser = $this->drupalCreateUser([
'access devel information',
'switch users',
], 'Devel User Four');
$this->switchUser = $this->drupalCreateUser([
'switch users',
], 'Switch User Five');
$this->webUser = $this->drupalCreateUser([], 'Web User Six');
}