From ee0d7197dd2be959bb07bf25dee442ccf9d7aa8c Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Fri, 11 Oct 2024 13:00:52 +0200 Subject: [PATCH] test: cover all transactional methods in `EntityManagerTest::testItPreservesTheOriginalExceptionOnRollbackFailure()` --- tests/Tests/ORM/EntityManagerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Tests/ORM/EntityManagerTest.php b/tests/Tests/ORM/EntityManagerTest.php index 88ff5ed924..202560602c 100644 --- a/tests/Tests/ORM/EntityManagerTest.php +++ b/tests/Tests/ORM/EntityManagerTest.php @@ -399,7 +399,7 @@ public function rollBack(): bool }); try { - $entityManager->transactional(static function (): void { + $entityManager->$methodName(static function (): void { throw new Exception('Original exception'); }); self::fail('Exception expected');