diff --git a/Tests/Behat/FlowContextTrait.php b/Tests/Behat/FlowContextTrait.php index 5321ea2..42f1d4c 100644 --- a/Tests/Behat/FlowContextTrait.php +++ b/Tests/Behat/FlowContextTrait.php @@ -174,6 +174,11 @@ public function resetTestFixtures($event): void $doctrineService = $this->objectManager->get(Service::class); $doctrineService->executeMigrations(); $needsTruncate = false; + } catch (\PDOException $exception) { + if ($exception->getMessage() !== 'There is no active transaction') { + throw $exception; + } + $needsTruncate = true; } $schema = $entityManager->getConnection()->getSchemaManager()->createSchema();