protected function ToolbarHookToolbarTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php \Drupal\Tests\toolbar\Functional\ToolbarHookToolbarTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ toolbar/ tests/ src/ Functional/ ToolbarHookToolbarTest.php, line 33
Class
- ToolbarHookToolbarTest
- Tests the implementation of hook_toolbar() by a module.
Namespace
Drupal\Tests\toolbar\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create an administrative user and log it in.
$this->adminUser = $this
->drupalCreateUser([
'access toolbar',
]);
$this
->drupalLogin($this->adminUser);
}