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

test(laravel): call factories, debug is now false by default #6702

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Oct 7, 2024

Because the shouldSeed (orchestral/testbench-core@57954cc) is now false by default we didn't executed the DatabaseSeeder every time. I choose to load just what we need for each test to speed up tests. Also, I noted that we may have side effects using the file storage as app.debug looks to be false by default for testing (not sure what brought this update) and therefore when adding a format inside tests we need to use the MemoryCache, or to clear laravel's cache (couldn't make it work through the workbench command).

@soyuka soyuka changed the base branch from main to 4.0 October 7, 2024 15:18
@soyuka soyuka merged commit 1054b9a into api-platform:4.0 Oct 8, 2024
58 of 59 checks passed
@soyuka soyuka deleted the test/laravel branch October 8, 2024 06:32
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.

1 participant