protected function FortyTwoAdminToolbarTest::setUp in FortyTwo - Administration toolbar 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/FortyTwoAdminToolbarTest.php \Drupal\Tests\fortytwo_admin_toolbar\Functional\FortyTwoAdminToolbarTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ FortyTwoAdminToolbarTest.php, line 29
Class
- FortyTwoAdminToolbarTest
- Tests Fortytwo Admin Toolbar functionality.
Namespace
Drupal\Tests\fortytwo_admin_toolbar\FunctionalCode
protected function setUp() {
parent::setUp();
// Create a user with permissions to manage.
$permissions = [
'administer site configuration',
'access toolbar',
];
$account = $this
->drupalCreateUser($permissions);
// Initiate user session.
$this
->drupalLogin($account);
}