function ContentModerationWorkflowTypeTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php, line 33

Class

ContentModerationWorkflowTypeTest
Test the workflow type plugin in the content_moderation module.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $admin = $this->drupalCreateUser([
        'administer workflows',
    ]);
    $this->drupalLogin($admin);
}

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