You are here

public function ModerationDashboardPermissionTest::setUp in Moderation Dashboard 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/ModerationDashboardPermissionTest.php \Drupal\Tests\moderation_dashboard\Functional\ModerationDashboardPermissionTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ModerationDashboardPermissionTest.php, line 32

Class

ModerationDashboardPermissionTest
Tests moderation dashboard permissions.

Namespace

Drupal\Tests\moderation_dashboard\Functional

Code

public function setUp() {
  parent::setUp();

  // Create a moderated entity type.
  $this
    ->drupalCreateContentType([
    'type' => 'page',
  ]);
  $workflow = $this
    ->createEditorialWorkflow();
  $workflow
    ->getTypePlugin()
    ->addEntityTypeAndBundle('node', 'page');
  $workflow
    ->save();
}