Skip to content

[5.x] Addon Testing Changes - #9871

Merged
jasonvarga merged 7 commits into
masterfrom
addon-testing-changes
Apr 12, 2024
Merged

jasonvarga merged 7 commits into
masterfrom
addon-testing-changes

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Apr 12, 2024

Copy link
Copy Markdown
Member

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__.

Comment thread src/Testing/Concerns/PreventSavingStacheItemsToDisk.php
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