function WorkflowValidationTest::setUpEnvironment
Overrides ConfigEntityValidationTestBase::setUpEnvironment
File
-
core/
modules/ workflows/ tests/ src/ Kernel/ WorkflowValidationTest.php, line 31
Class
- WorkflowValidationTest
- Tests validation of workflow entities.
Namespace
Drupal\Tests\workflows\KernelCode
protected function setUpEnvironment() : void {
parent::setUpEnvironment();
$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.