function WorkspaceSwitcherTest::setUp

Same name and namespace in other branches
  1. 9 core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php \Drupal\Tests\workspaces\Functional\WorkspaceSwitcherTest::setUp()
  2. 8.9.x core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php \Drupal\Tests\workspaces\Functional\WorkspaceSwitcherTest::setUp()
  3. 10 core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php \Drupal\Tests\workspaces\Functional\WorkspaceSwitcherTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php, line 40

Class

WorkspaceSwitcherTest
Tests workspace switching functionality.

Namespace

Drupal\Tests\workspaces\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $permissions = [
        'create workspace',
        'edit own workspace',
        'view own workspace',
        'bypass entity access own workspace',
    ];
    $this->setupWorkspaceSwitcherBlock();
    $mayer = $this->drupalCreateUser($permissions);
    $this->drupalLogin($mayer);
}

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