Add check that workflow hasn't been duplicated when not allowed

[MAILPOET-4540]
This commit is contained in:
Jan Jakes
2022-10-14 09:25:08 +02:00
committed by David Remer
parent 70344b0e84
commit 7b2dc2d172

View File

@@ -47,6 +47,7 @@ class WorkflowsDuplicateEndpointTest extends AutomationTest {
$workflow = $this->workflowStorage->getWorkflow($this->workflow->getId());
$this->assertInstanceOf(Workflow::class, $workflow);
$this->assertSame('Testing workflow', $workflow->getName());
$this->assertNull($this->workflowStorage->getWorkflow($this->workflow->getId() + 1));
}
public function testItDuplicatesAWorkflow(): void {