Skip to content

Commit

Permalink
Merge pull request #11660 from simPod/test-method
Browse files Browse the repository at this point in the history
test: cover all transactional methods in `EntityManagerTest::testItPreservesTheOriginalExceptionOnRollbackFailure()`
  • Loading branch information
greg0ire authored Oct 11, 2024
2 parents c2c5000 + ee0d719 commit ff612b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Tests/ORM/EntityManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ff612b9

Please sign in to comment.