diff --git a/tests/Tests/ORM/EntityManagerTest.php b/tests/Tests/ORM/EntityManagerTest.php index 88ff5ed924f..202560602cd 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');