Skip to content

Conversation

lucasmichot
Copy link
Contributor

@lucasmichot lucasmichot commented Jan 20, 2019

Laravel comes with a handy "read/write" feature.
Unfortunatelly it is impossible to keep and test this feature alike during tests, when using RefreshDatabase.

In this situation, usingInMemoryDatabase method will never resolve the database key as it's embedded under either the read either the write section, and will raise an error during tests.

This PR fix this problem.

@lucasmichot lucasmichot changed the title [5.7] Use config to resolve database value during tests. [5.7] Use config to resolve the database value during tests. Jan 20, 2019
@taylorotwell taylorotwell merged commit ea352aa into laravel:5.7 Jan 20, 2019
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