You are here

public function WorkspaceTest::setUp in Workspace 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/WorkspaceTest.php \Drupal\Tests\workspace\Functional\WorkspaceTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/WorkspaceTest.php, line 20

Class

WorkspaceTest
Test the workspace entity.

Namespace

Drupal\Tests\workspace\Functional

Code

public function setUp() {
  parent::setUp();
  $permissions = [
    'access administration pages',
    'administer site configuration',
    'administer workspaces',
    'create_workspace',
    'edit_own_workspace',
  ];
  $editor1 = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($editor1);
}