Skip to content

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).

@erikgaal erikgaal force-pushed the patch-fake-without-config branch from 63c82b4 to de26a17 Compare January 12, 2023 17:24
@taylorotwell taylorotwell merged commit 4079aa9 into laravel:9.x Jan 13, 2023
@erikgaal erikgaal deleted the patch-fake-without-config branch January 18, 2025 15:08
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