protected function WorkspaceSwitcherTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php \Drupal\Tests\workspaces\Functional\WorkspaceSwitcherTest::setUp()
- 9 core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php \Drupal\Tests\workspaces\Functional\WorkspaceSwitcherTest::setUp()
File
- core/
modules/ workspaces/ tests/ src/ Functional/ WorkspaceSwitcherTest.php, line 31
Class
- WorkspaceSwitcherTest
- Tests workspace switching functionality.
Namespace
Drupal\Tests\workspaces\FunctionalCode
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);
}