protected function DevelSwitchUserTest::setUp in Devel 8.2
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()
- 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\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');
}