Skip to content

Commit ff612b9

Browse files
authored
Merge pull request doctrine#11660 from simPod/test-method
test: cover all transactional methods in `EntityManagerTest::testItPreservesTheOriginalExceptionOnRollbackFailure()`
2 parents c2c5000 + ee0d719 commit ff612b9

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)