You are here

protected function EntityLoadingTest::setUp in Multiversion 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/EntityLoadingTest.php \Drupal\Tests\multiversion\Kernel\EntityLoadingTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EntityLoadingTest.php, line 40

Class

EntityLoadingTest
@group multiversion

Namespace

Drupal\Tests\multiversion\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('workspace');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('workspace');
  $this
    ->installEntitySchema('workspace_association');
  $this
    ->installConfig([
    'multiversion',
    'filter',
    'node',
    'system',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installSchema('system', [
    'key_value_expire',
    'sequences',
  ]);
  $this
    ->installSchema('key_value', [
    'key_value_sorted',
  ]);
  $multiversion_manager = $this->container
    ->get('multiversion.manager');
  $multiversion_manager
    ->enableEntityTypes();
  $this
    ->createContentType([
    'type' => 'page',
  ]);
}