You are here

protected function AllDocsFactoryTest::setUp in Replication 8.2

Overrides KernelTestBase::setUp

File

tests/src/Unit/AllDocsFactoryTest.php, line 29

Class

AllDocsFactoryTest
Tests the AllDocsFactory

Namespace

Drupal\Tests\replication\Unit

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('node');
  $this
    ->installSchema('key_value', [
    'key_value_sorted',
  ]);
  $this
    ->installConfig([
    'multiversion',
  ]);
  \Drupal::service('multiversion.manager')
    ->enableEntityTypes();
  $this->workspace = Workspace::create([
    'machine_name' => 'default',
    'type' => 'basic',
  ]);
  $this->workspace
    ->save();
}