function WorkspacePublisherTest::setUp

Overrides KernelTestBase::setUp

File

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

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',
  ]);
}

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