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

[8.x] Fix BatchRepositoryFake TypeError #34225

Merged
merged 1 commit into from
Sep 9, 2020
Merged

[8.x] Fix BatchRepositoryFake TypeError #34225

merged 1 commit into from
Sep 9, 2020

Conversation

gbuckingham89
Copy link
Contributor

I opened issue #34223 because I was getting a TypeError when using the Bus fake in my tests to check that a batchable job had been pushed.

Upon investigation it appeared that there were 2 arguments missing when creating an Illuminate\Bus\Batch within the store() method of Illuminate\Support\Testing\Fakes\BatchRepositoryFake.

This PR adds the missing arguments (batch name and failed job IDs).

@gbuckingham89 gbuckingham89 changed the title Fix BatchRepositoryFake Fix BatchRepositoryFake TypeError Sep 9, 2020
@GrahamCampbell GrahamCampbell changed the title Fix BatchRepositoryFake TypeError [8.x] Fix BatchRepositoryFake TypeError Sep 9, 2020
@taylorotwell taylorotwell merged commit 574916b into laravel:8.x Sep 9, 2020
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.

2 participants