You are here

protected function WorkspaceContentModerationIntegrationTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php \Drupal\Tests\content_moderation\Functional\WorkspaceContentModerationIntegrationTest::setUp()

Sets the test up.

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() {
  parent::setUp();
  $this
    ->drupalLogin($this->rootUser);

  // Enable moderation on Article node type.
  $this
    ->createContentTypeFromUi('Article', 'article', TRUE);
  $this
    ->setupWorkspaceSwitcherBlock();
}