function WorkspaceEntityDeleteTest::setUp

Same name in this branch
  1. 10 core/modules/workspaces/tests/src/Kernel/WorkspaceEntityDeleteTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceEntityDeleteTest::setUp()
Same name in other branches
  1. 11.x core/modules/workspaces/tests/src/Kernel/WorkspaceEntityDeleteTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceEntityDeleteTest::setUp()
  2. 11.x core/modules/workspaces/tests/src/Functional/WorkspaceEntityDeleteTest.php \Drupal\Tests\workspaces\Functional\WorkspaceEntityDeleteTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/workspaces/tests/src/Functional/WorkspaceEntityDeleteTest.php, line 32

Class

WorkspaceEntityDeleteTest
Tests entity deletions with workspaces.

Namespace

Drupal\Tests\workspaces\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->createContentType([
        'type' => 'article',
        'label' => 'Article',
    ]);
    $this->setupWorkspaceSwitcherBlock();
}

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