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 alternate cache drivers #2416

Merged
merged 1 commit into from Apr 27, 2023
Merged

Test alternate cache drivers #2416

merged 1 commit into from Apr 27, 2023

Conversation

erikn69
Copy link
Contributor

@erikn69 erikn69 commented Apr 26, 2023

Closes #2413
It seems to work correctly, but I don't know if it is the most appropriate option

@drbyte
Copy link
Collaborator

drbyte commented Apr 26, 2023

I see your point. Ya the temporary file is one way. But that makes me contemplate just using the yml to drive it all?

  • set the env var for cache driver (to override phpunit.xml)
  • load any needed extensions (eg: to also test memcached, redis) into php

If they all take too long in one batch, we could push the memcached and redis to separate test yml's.

@erikn69 erikn69 force-pushed the patch-26 branch 4 times, most recently from 1203ac5 to 13e579c Compare April 26, 2023 22:45
@drbyte
Copy link
Collaborator

drbyte commented Apr 26, 2023

Looks great!

Question: do we know for certain that the expected driver is being used in each variation? 👀

@drbyte
Copy link
Collaborator

drbyte commented Apr 27, 2023

Question: do we know for certain that the expected driver is being used in each variation? 👀

I guess it is. (https://github.com/drbyte/laravel-permission/actions/runs/4814920227/jobs/8573107658)
Just wanted to be sure it was indeed reading the ENV settings correctly.

@drbyte drbyte changed the title Alternate cache driver on tests Test alternate cache drivers Apr 27, 2023
@drbyte drbyte merged commit 9f18371 into spatie:main Apr 27, 2023
20 checks passed
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.

Add tests for alternate Cache Drivers
2 participants