function WorkspacesContentModerationStateTest::createEditorialWorkflow

Same name in other branches
  1. 9 core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\WorkspacesContentModerationStateTest::createEditorialWorkflow()
  2. 8.9.x core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\WorkspacesContentModerationStateTest::createEditorialWorkflow()
  3. 10 core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\WorkspacesContentModerationStateTest::createEditorialWorkflow()

Overrides ContentModerationTestTrait::createEditorialWorkflow

3 calls to WorkspacesContentModerationStateTest::createEditorialWorkflow()
WorkspacesContentModerationStateTest::testContentModerationIntegrationWithWorkspaces in core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php
Tests the integration between Content Moderation and Workspaces.
WorkspacesContentModerationStateTest::testContentModerationMultipleEntityTypesWithWorkspaces in core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php
Publish a workspace with multiple entities from different entity types.
WorkspacesContentModerationStateTest::testContentModerationWithoutDefaultRevisionsInWorkspaces in core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php
Publish a workspace with workflows including no tracked default revisions.

File

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.