Skip to content

Commit 3cc427d

Browse files
committed
minor symfony#51809 [Messenger] Fix tests (fabpot)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Messenger] Fix tests | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | n/a | License | MIT Commits ------- c8f3f49 [Messenger] Fix tests
2 parents e11ae31 + c8f3f49 commit 3cc427d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"symfony/notifier": "^5.4|^6.0|^7.0",
5757
"symfony/process": "^5.4|^6.0|^7.0",
5858
"symfony/rate-limiter": "^5.4|^6.0|^7.0",
59-
"symfony/scheduler": "^6.3|^7.0",
59+
"symfony/scheduler": "^6.4|^7.0",
6060
"symfony/security-bundle": "^5.4|^6.0|^7.0",
6161
"symfony/semaphore": "^5.4|^6.0|^7.0",
6262
"symfony/serializer": "^6.4|^7.0",

src/Symfony/Component/Messenger/Tests/Exception/HandlerFailedExceptionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testThatWrappedExceptionsRecursive()
7575
$exception2 = new MyOwnException('second');
7676
$exception3 = new MyOwnException('third');
7777

78-
$handlerException = new HandlerFailedException($envelope, [$exception1, $exception2, new DelayedMessageHandlingException([$exception3])]);
78+
$handlerException = new HandlerFailedException($envelope, [$exception1, $exception2, new DelayedMessageHandlingException([$exception3], $envelope)]);
7979
$this->assertSame([$exception1, $exception2, $exception3], $handlerException->getWrappedExceptions(recursive: true));
8080
}
8181

@@ -86,7 +86,7 @@ public function testThatWrappedExceptionsRecursiveStringKeys()
8686
$exception2 = new MyOwnException('second');
8787
$exception3 = new MyOwnException('third');
8888

89-
$handlerException = new HandlerFailedException($envelope, ['first' => $exception1, 'second' => $exception2, new DelayedMessageHandlingException(['third' => $exception3])]);
89+
$handlerException = new HandlerFailedException($envelope, ['first' => $exception1, 'second' => $exception2, new DelayedMessageHandlingException(['third' => $exception3], $envelope)]);
9090
$this->assertSame(['first' => $exception1, 'second' => $exception2, 'third' => $exception3], $handlerException->getWrappedExceptions(recursive: true));
9191
}
9292

@@ -97,7 +97,7 @@ public function testThatWrappedExceptionsByClassRecursive()
9797
$exception2 = new MyOwnException('second');
9898
$exception3 = new MyOwnException('third');
9999

100-
$handlerException = new HandlerFailedException($envelope, [$exception1, $exception2, new DelayedMessageHandlingException([$exception3])]);
100+
$handlerException = new HandlerFailedException($envelope, [$exception1, $exception2, new DelayedMessageHandlingException([$exception3], $envelope)]);
101101
$this->assertSame([$exception2, $exception3], $handlerException->getWrappedExceptions(class: MyOwnException::class, recursive: true));
102102
}
103103
}

0 commit comments

Comments
 (0)