public function StandardInstallTest::testWorkflowNotExists in Lightning Workflow 8.3
Tests that the editorial workflow is installed from the profile override.
File
- tests/
src/ Functional/ StandardInstallTest.php, line 28
Class
- StandardInstallTest
- Tests that our configuration is correctly installed in Standard.
Namespace
Drupal\Tests\lightning_workflow\FunctionalCode
public function testWorkflowNotExists() {
$this
->assertTrue($this
->config('workflows.workflow.editorial')
->isNew());
$this->container
->get('module_installer')
->install([
'lightning_workflow',
]);
/** @var \Drupal\workflows\WorkflowInterface $workflow */
$workflow = Workflow::load('editorial');
$this
->assertInstanceOf(Workflow::class, $workflow);
$this
->assertFalse($workflow
->getTypePlugin()
->hasState('review'));
}