-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Settings fake still connects to the database #225
Comments
Hi, I have same issue. How can I prevent all settings from loading automatically? |
The package will load in extra settings which were not faked, so you can only provide a part of the faked settings and rely on the defaults within the migrations. That being said, it should be possible to completely fake the settings so I've added this in our newest release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For our project, we explicitly wipe de database for unittests so that unittests are sure to not use the database, this is what feature tests are for.
I expected that using
SomeSettingsClass::fake(/*needed values for this test*/);
would just register this singleton and not use the database since it doesn't have to load (or save) values. However, it does:The text was updated successfully, but these errors were encountered: