function WorkflowValidationTest::setUp

Same name in other branches
  1. 10 core/modules/workflows/tests/src/Kernel/WorkflowValidationTest.php \Drupal\Tests\workflows\Kernel\WorkflowValidationTest::setUp()

Overrides ConfigEntityValidationTestBase::setUp

File

core/modules/workflows/tests/src/Kernel/WorkflowValidationTest.php, line 25

Class

WorkflowValidationTest
Tests validation of workflow entities.

Namespace

Drupal\Tests\workflows\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->entity = Workflow::create([
        'id' => 'test',
        'label' => 'Test',
        'type' => 'workflow_type_test',
    ]);
    $this->entity
        ->save();
}

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