You are here

protected function WorkspaceTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workspaces/tests/src/Functional/WorkspaceTest.php \Drupal\Tests\workspaces\Functional\WorkspaceTest::setUp()
  2. 9 core/modules/workspaces/tests/src/Functional/WorkspaceTest.php \Drupal\Tests\workspaces\Functional\WorkspaceTest::setUp()

File

core/modules/workspaces/tests/src/Functional/WorkspaceTest.php, line 55

Class

WorkspaceTest
Test the workspace entity.

Namespace

Drupal\Tests\workspaces\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $permissions = [
    'access administration pages',
    'administer site configuration',
    'create workspace',
    'edit own workspace',
    'edit any workspace',
    'view own workspace',
    'access toolbar',
  ];
  $this->editor1 = $this
    ->drupalCreateUser($permissions);
  $this->editor2 = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalPlaceBlock('local_actions_block');
}