function WorkspaceContentModerationIntegrationTest::setUp

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

Overrides ModerationStateTestBase::setUp

File

core/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php, line 31

Class

WorkspaceContentModerationIntegrationTest
Tests Workspaces together with Content Moderation.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalLogin($this->rootUser);
    // Enable moderation on Article node type.
    $this->createContentTypeFromUi('Article', 'article', TRUE);
    $this->setupWorkspaceSwitcherBlock();
}

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