You are here

protected function WorkspaceDeletionTest::setUp in Workspace 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/WorkspaceDeletionTest.php, line 49

Class

WorkspaceDeletionTest
Tests for deleting workspaces.

Namespace

Drupal\Tests\workspace\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('node', 'node_access');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('workspace');
  $this
    ->installEntitySchema('replication');
  $this
    ->installEntitySchema('workspace_pointer');
  $this
    ->installEntitySchema('replication_log');
  $this
    ->installSchema('key_value', 'key_value_sorted');
  $this
    ->installSchema('system', [
    'key_value_expire',
    'sequences',
  ]);
  $this
    ->installConfig('multiversion');
  $this->entityTypeManager = \Drupal::entityTypeManager();
  $this->cron = \Drupal::service('cron');
  \Drupal::service('multiversion.manager')
    ->enableEntityTypes();
}