public function WorkspaceTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/tests/src/Functional/WorkspaceTest.php \Drupal\Tests\workspaces\Functional\WorkspaceTest::setUp()
- 10 core/modules/workspaces/tests/src/Functional/WorkspaceTest.php \Drupal\Tests\workspaces\Functional\WorkspaceTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ workspaces/ tests/ src/ Functional/ WorkspaceTest.php, line 55
Class
- WorkspaceTest
- Test the workspace entity.
Namespace
Drupal\Tests\workspaces\FunctionalCode
public 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');
}