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

fix: Move the ReloadDatabaseTrait state to the FixtureStore #45

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

theofidry
Copy link
Owner

@theofidry theofidry commented Oct 6, 2023

Closes #44

wuchen90 and others added 2 commits September 22, 2023 00:49
After this PR #43, the `self::$fixtures` isn't populated anymore for the tests that are located in other classes.
Since the population code is executed only once and stores the fixtures into the first test class static `$fixtures` variable, the other class will get `self::$fixtures === null`.
@theofidry
Copy link
Owner Author

/cc @wuchen90 @yakobe could you try out this fix?

@yakobe
Copy link

yakobe commented Nov 22, 2023

@theofidry what is this wizardry 🎉 ! This fixes my problem and my tests are sooooo much faster. Great stuff, thank you!

ps: sorry it took so long to test. other things came in between, which i now regret because this speeds up our dev/ci a lot 😄

@theofidry theofidry merged commit 76485f1 into master Nov 22, 2023
@theofidry theofidry deleted the wuchen90-patch-1 branch November 22, 2023 23:06
@theofidry
Copy link
Owner Author

Cool! Let's do a quick release then :)

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.

3 participants