function ToolbarHookToolbarTest::setUp

Same name in other branches
  1. 9 core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php \Drupal\Tests\toolbar\Functional\ToolbarHookToolbarTest::setUp()
  2. 10 core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php \Drupal\Tests\toolbar\Functional\ToolbarHookToolbarTest::setUp()
  3. 11.x 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\Functional

Code

protected function setUp() {
    parent::setUp();
    // Create an administrative user and log it in.
    $this->adminUser = $this->drupalCreateUser([
        'access toolbar',
    ]);
    $this->drupalLogin($this->adminUser);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.