Remove "inactive" status for now, use "draft" instead

[MAILPOET-4757]
This commit is contained in:
Jan Jakes
2022-11-04 11:09:06 +01:00
committed by David Remer
parent f1abfe557a
commit af1e09f46f
12 changed files with 13 additions and 41 deletions

View File

@@ -98,7 +98,7 @@ class StepHandlerTest extends \MailPoetTest
}
}
public function testAnDeactivatingWorkflowGetsInactiveAfterLastRunIsExecuted() {
public function testAnDeactivatingWorkflowBecomesDraftAfterLastRunIsExecuted() {
$workflow = $this->createWorkflow();
$this->assertInstanceOf(Workflow::class, $workflow);
$workflowRun1 = $this->createWorkflowRun($workflow);
@@ -127,7 +127,7 @@ class StepHandlerTest extends \MailPoetTest
$updatedWorkflow = $this->workflowStorage->getWorkflow($workflow->getId());
/** @var WorkflowRun $updatedworkflowRun */
$updatedworkflowRun = $this->workflowRunStorage->getWorkflowRun($workflowRun1->getId());
$this->assertSame(Workflow::STATUS_INACTIVE, $updatedWorkflow->getStatus());
$this->assertSame(Workflow::STATUS_DRAFT, $updatedWorkflow->getStatus());
$this->assertSame(WorkflowRun::STATUS_COMPLETE, $updatedworkflowRun->getStatus());
}