You are here

protected function SchedulerContentModerationTestBase::configureEditorialWorkflow in Scheduler content moderation integration 8

Configures the editorial workflow for the example node type.

1 call to SchedulerContentModerationTestBase::configureEditorialWorkflow()
SchedulerContentModerationTestBase::setUp in tests/src/Kernel/SchedulerContentModerationTestBase.php

File

tests/src/Kernel/SchedulerContentModerationTestBase.php, line 103

Class

SchedulerContentModerationTestBase
Base class for the Scheduler Content Moderation tests.

Namespace

Drupal\Tests\scheduler_content_moderation_integration\Kernel

Code

protected function configureEditorialWorkflow() {
  $this->workflow = $this
    ->createEditorialWorkflow();
  $this->workflow
    ->getTypePlugin()
    ->addEntityTypeAndBundle('node', 'example');
  $this->workflow
    ->save();
}