Skip to content

[9.x] Clean up revisions left behind by PublishedModelsControllerTest - #853

Merged
duncanmcclean merged 1 commit into
9.xfrom
published-models-test-cleanup
Sep 4, 2026
Merged

duncanmcclean merged 1 commit into
9.xfrom
published-models-test-cleanup

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where PublishedModelsControllerTest left revision files behind in tests/__fixtures__/revisions after running.

This was happening because the test overrides statamic.revisions.path and deletes that directory on tear down, but revisions are now written via the Stache store, whose directory is configured in TestCase to point at the fixtures directory.

This PR fixes it by deleting the fixtures directory on tear down, like ModelRevisionsControllerTest and RestoreModelRevisionController already do.

…elsControllerTest`

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VNJoUuntDsQj9K8gSdRd6W
@duncanmcclean
duncanmcclean merged commit 4b7118c into 9.x Sep 4, 2026
15 checks passed
@duncanmcclean
duncanmcclean deleted the published-models-test-cleanup branch September 4, 2026 10:11
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