diff --git a/mailpoet/tests/integration/REST/Automation/Workflows/WorkflowsDuplicateEndpointTest.php b/mailpoet/tests/integration/REST/Automation/Workflows/WorkflowsDuplicateEndpointTest.php index cac8dcdb17..7dc72394ca 100644 --- a/mailpoet/tests/integration/REST/Automation/Workflows/WorkflowsDuplicateEndpointTest.php +++ b/mailpoet/tests/integration/REST/Automation/Workflows/WorkflowsDuplicateEndpointTest.php @@ -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 {