We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 281a077 commit c3b98bdCopy full SHA for c3b98bd
tests/TaskHandlerTest.php
@@ -466,14 +466,14 @@ public function attempts_are_copied_from_x_header()
466
{
467
// Arrange
468
OpenIdVerificator::fake();
469
- Event::fake([JobProcessing::class]);
+ Event::fake($this->getJobReleasedAfterExceptionEvent());
470
471
// Act & Assert
472
- $job = $this->dispatch(new SimpleJob());
+ $job = $this->dispatch(new FailingJob());
473
request()->headers->set('X-CloudTasks-TaskRetryCount', 6);
474
$job->run();
475
476
- Event::assertDispatched(JobProcessing::class, function (JobProcessing $event) {
+ Event::assertDispatched($this->getJobReleasedAfterExceptionEvent(), function ($event) {
477
return $event->job->attempts() === 7;
478
});
479
}
0 commit comments