You are here

protected function WorkspaceAccessTest::setUp in Drupal 8

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

Overrides KernelTestBase::setUp

File

core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php, line 34

Class

WorkspaceAccessTest
Tests access on workspaces.

Namespace

Drupal\Tests\workspaces\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this
    ->installSchema('workspaces', [
    'workspace_association',
  ]);
  $this
    ->installEntitySchema('workspace');
  $this
    ->installEntitySchema('user');

  // User 1.
  $this
    ->createUser();
}