function WorkspaceMenuLinkContentIntegrationTest::setUp

Same name in other branches
  1. 11.x core/modules/workspaces/tests/src/Functional/WorkspaceMenuLinkContentIntegrationTest.php \Drupal\Tests\workspaces\Functional\WorkspaceMenuLinkContentIntegrationTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/workspaces/tests/src/Functional/WorkspaceMenuLinkContentIntegrationTest.php, line 46

Class

WorkspaceMenuLinkContentIntegrationTest
Tests workspace integration for custom menu links.

Namespace

Drupal\Tests\workspaces\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $permissions = [
        'access administration pages',
        'administer menu',
        'administer site configuration',
        'administer workspaces',
    ];
    $this->drupalLogin($this->drupalCreateUser($permissions));
    $this->drupalPlaceBlock('system_menu_block:main');
}

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