You are here

protected function WorkspacesContentModerationStateTest::createEditorialWorkflow in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\WorkspacesContentModerationStateTest::createEditorialWorkflow()
  2. 10 core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\WorkspacesContentModerationStateTest::createEditorialWorkflow()

Creates the editorial workflow.

Return value

\Drupal\workflows\Entity\Workflow The editorial workflow entity.

Overrides ContentModerationTestTrait::createEditorialWorkflow

1 call to WorkspacesContentModerationStateTest::createEditorialWorkflow()
WorkspacesContentModerationStateTest::testContentModerationIntegrationWithWorkspaces in core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php
Tests the integration between Content Moderation and Workspaces.

File

core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php, line 225

Class

WorkspacesContentModerationStateTest
Tests that Workspaces and Content Moderation work together properly.

Namespace

Drupal\Tests\content_moderation\Kernel

Code

protected function createEditorialWorkflow() {
  $workflow = $this->workspaceManager
    ->executeOutsideWorkspace(function () {
    return $this
      ->traitCreateEditorialWorkflow();
  });
  return $workflow;
}