function ContentModerationWorkflowTypeApiTest::setUp

Overrides KernelTestBase::setUp

File

core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowTypeApiTest.php, line 37

Class

ContentModerationWorkflowTypeApiTest
Tests the API of the ContentModeration workflow type plugin.

Namespace

Drupal\Tests\content_moderation\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->workflow = Workflow::create([
    'id' => 'test',
    'type' => 'content_moderation',
  ]);
}

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