You are here

protected function ModerationStateNodeTest::setUp in Drupal 8

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

Sets the test up.

Overrides ModerationStateTestBase::setUp

File

core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php, line 23

Class

ModerationStateNodeTest
Tests general content moderation workflow for nodes.

Namespace

Drupal\Tests\content_moderation\Functional

Code

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