You are here

protected function WorkspaceCRUDTest::setUp in Workspace 8.2

Overrides KernelTestBase::setUp

File

tests/src/Kernel/WorkspaceCRUDTest.php, line 59

Class

WorkspaceCRUDTest
Tests CRUD operations for workspaces.

Namespace

Drupal\Tests\workspace\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', [
    'key_value_expire',
    'sequences',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installEntitySchema('workspace');
  $this
    ->installEntitySchema('workspace_association');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('user');
  $this
    ->installConfig([
    'filter',
    'node',
    'system',
  ]);
  $this
    ->createContentType([
    'type' => 'page',
  ]);
  $this->entityTypeManager = \Drupal::entityTypeManager();
  $this->state = \Drupal::state();
  $this->workspaceManager = \Drupal::service('workspace.manager');
}