Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Allow older jobs to be faked #48434

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented Sep 18, 2023

Older style queued job pushing, where you are referencing the job class and passing the payload as an array, is not currently supported. This fixes that.

Queue::fake([MyJob::class]);

Queue::push(MyJob::class, ['job' => 'payload']);

Queue::assertPushed(MyJob::class);

@taylorotwell taylorotwell merged commit d95209b into laravel:10.x Sep 18, 2023
20 checks passed
@timacdonald timacdonald deleted the fake-pushed-jobs branch September 18, 2023 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants