function ToolbarMenuTranslationTest::setUp

Same name in other branches
  1. 8.9.x core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php \Drupal\Tests\toolbar\Functional\ToolbarMenuTranslationTest::setUp()
  2. 10 core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php \Drupal\Tests\toolbar\Functional\ToolbarMenuTranslationTest::setUp()
  3. 11.x core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php \Drupal\Tests\toolbar\Functional\ToolbarMenuTranslationTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php, line 41

Class

ToolbarMenuTranslationTest
Tests that the toolbar icon class remains for translated menu items.

Namespace

Drupal\Tests\toolbar\Functional

Code

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

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