Skip to content

Commit ee0d719

Browse files
committed
test: cover all transactional methods in EntityManagerTest::testItPreservesTheOriginalExceptionOnRollbackFailure()
1 parent c2c5000 commit ee0d719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Tests/ORM/EntityManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public function rollBack(): bool
399399
});
400400

401401
try {
402-
$entityManager->transactional(static function (): void {
402+
$entityManager->$methodName(static function (): void {
403403
throw new Exception('Original exception');
404404
});
405405
self::fail('Exception expected');

0 commit comments

Comments
 (0)