protected function DevelSwitchUserTest::setUp in Devel 4.x
Same name and namespace in other branches
- 8.3 tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setUp()
- 8 tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setUp()
- 8.2 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');
}