You are here

public function WorkspaceControllerTest::setUp in Workspace 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/WorkspaceControllerTest.php, line 33

Class

WorkspaceControllerTest
Test the WorkspaceController.

Namespace

Drupal\Tests\workspace\Functional

Code

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