You are here

protected function ModerationStateNodeTest::setUp in Workbench Moderation 8

Sets the test up.

Overrides ModerationStateTestBase::setUp

File

tests/src/Functional/ModerationStateNodeTest.php, line 18

Class

ModerationStateNodeTest
Tests general content moderation workflow for nodes.

Namespace

Drupal\Tests\workbench_moderation\Functional

Code

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