8000 minor #49655 [Messenger] Fix `evaluate()` calls in `WorkerTest` (alex… · adpauly/symfony@753a509 · GitHub
[go: up one dir, main page]

Skip to content

Commit 753a509

Browse files
minor symfony#49655 [Messenger] Fix evaluate() calls in WorkerTest (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [Messenger] Fix `evaluate()` calls in `WorkerTest` | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | _NA_ | License | MIT | Doc PR | _NA_ Just two little tweaks in tests to fix `evaluate()` calls 👍 Commits ------- 40efc7b [Messenger] Fix `evaluate()` calls in `WorkerTest`
2 parents 626954d + 40efc7b commit 753a509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Messenger/Tests/WorkerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function testWorkerDispatchesEventsOnSuccess()
188188
$eventDispatcher->expects($this->exactly(5))
189189
->method('dispatch')
190190
->willReturnCallback(function ($event) use (&$series) {
191-
array_shift($series)->evaluate($event, '', true);
191+
array_shift($series)->evaluate($event);
192192

193193
if ($event instanceof WorkerRunningEvent) {
194194
$event->getWorker()->stop();
@@ -223,7 +223,7 @@ public function testWorkerDispatchesEventsOnError()
223223
$eventDispatcher->expects($this->exactly(5))
224224
->method('dispatch')
225225
->willReturnCallback(function ($event) use (&$series) {
226-
array_shift($series)->evaluate($event, '', true);
226+
array_shift($series)->evaluate($event);
227227

228228
if ($event instanceof WorkerRunningEvent) {
229229
$event->getWorker()->stop();

0 commit comments

Comments
 (0)
0