function WorkspaceMergerTest::setUp

Same name in other branches
  1. 8.9.x core/modules/workspaces/tests/src/Kernel/WorkspaceMergerTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceMergerTest::setUp()
  2. 10 core/modules/workspaces/tests/src/Kernel/WorkspaceMergerTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceMergerTest::setUp()
  3. 11.x core/modules/workspaces/tests/src/Kernel/WorkspaceMergerTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceMergerTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/workspaces/tests/src/Kernel/WorkspaceMergerTest.php, line 54

Class

WorkspaceMergerTest
Tests workspace merging.

Namespace

Drupal\Tests\workspaces\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->entityTypeManager = \Drupal::entityTypeManager();
    $this->installEntitySchema('node');
    $this->installEntitySchema('user');
    $this->installConfig([
        'filter',
        'node',
        'system',
    ]);
    $this->installSchema('system', [
        'sequences',
    ]);
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->createContentType([
        'type' => 'article',
    ]);
    $this->setCurrentUser($this->createUser([
        'administer nodes',
    ]));
}

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