function WorkflowValidationTest::setUp
Same name in other branches
- 11.x 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 26
Class
- WorkflowValidationTest
- Tests validation of workflow entities.
Namespace
Drupal\Tests\workflows\KernelCode
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.