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

[5.x] Addon Testing Changes #9871

Merged
merged 7 commits into from
Apr 12, 2024
Merged

[5.x] Addon Testing Changes #9871

merged 7 commits into from
Apr 12, 2024

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Apr 12, 2024

This pull request makes a couple of changes around addon testing:

  • Moves the AddonTestCase introduced in [5.x] Simplify TestCase for addons #9573 into the Statamic\Testing namespace
  • Makes the PreventSavingStacheItemsToDisk trait available for addons
    • This trait prevents Stache items from being kept around on the disk after the test suite has finished running.
    • I had to make some changes to the trait in order for the paths to be correct. Otherwise, the Stache files would live in vendor/statamic/cms/src/Testing/Concerns/__fixtures__.

@jasonvarga jasonvarga merged commit eded940 into master Apr 12, 2024
31 checks passed
@jasonvarga jasonvarga deleted the addon-testing-changes branch April 12, 2024 14:09
duncanmcclean added a commit to statamic/eloquent-driver that referenced this pull request Apr 12, 2024
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