Add check that workflow hasn't been duplicated when not allowed
[MAILPOET-4540]
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user