function WorkspacePublisherTest::setUp

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

Overrides KernelTestBase::setUp

File

core/modules/workspaces/tests/src/Kernel/WorkspacePublisherTest.php, line 56

Class

WorkspacePublisherTest
Tests workspace publishing.

Namespace

Drupal\Tests\workspaces\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->entityTypeManager = \Drupal::entityTypeManager();
  $this->installEntitySchema('node');
  $this->installEntitySchema('user');
  $this->installEntitySchema('workspace');
  $this->installSchema('node', [
    'node_access',
  ]);
  $this->installSchema('workspaces', [
    'workspace_association',
    'workspace_association_revision',
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.