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

[9.x] Allow fake() helper in unit tests #45624

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

erikgaal
Copy link
Contributor

This PR adds the ability to use the fake() helper in unit tests. The only thing stopping us from using it is that it's retrieving the faker_locale from the config. It's already defaulting to en_US if none is configured. If we only fetch if the config is actually bound in the container, it works even in unit tests (where the config is not bound).

@taylorotwell taylorotwell merged commit 4079aa9 into laravel:9.x Jan 13, 2023
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