You are here

protected function ModerationFormTest::setUp in Drupal 10

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

File

core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php, line 35

Class

ModerationFormTest
Tests the moderation form, specifically on nodes.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->createContentTypeFromUi('Moderated content', 'moderated_content', TRUE);
  $this
    ->grantUserPermissionToCreateContentOfType($this->adminUser, 'moderated_content');
}