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

Statamic 5 #3

Merged
merged 5 commits into from
May 8, 2024
Merged

Statamic 5 #3

merged 5 commits into from
May 8, 2024

Conversation

duncanmcclean
Copy link
Contributor

@duncanmcclean duncanmcclean commented Apr 18, 2024

This pull request updates the addon to be compatible with Statamic 5.

Apologies for the early PR - I use this addon on my personal site and wanted to have a PR to patch in so I can deploy the alpha. Feel free to ignore until it's properly released 😆

Changes:

  • Ignored the composer.lock file from version control (it shouldn't be committed for packages)
  • Updated the statamic/cms version constraint in composer.json
  • Updated the addon's TestCase
    • Statamic 5 now includes an AddonTestCase class which'll do all the bootstrapping stuff that previously had to be done manually. See the docs
  • Changed how sites are configured in the tests
    • Statamic 5 moved the sites configuration into the Control Panel. As part of this refactor, the setConfig method was removed in favour of setSites.
  • It also looks like the tests were failing due to the addition of a new preload parameter on Spatie's GoogleFonts class. I've updated the mock and the config to make this work.

From what I can tell, everything seems to be working fine with these changes. Although, obviously, you know this addon better than I do so I might have missed something.

@martyf martyf changed the base branch from 1.x to main May 8, 2024 01:45
@martyf
Copy link
Contributor

martyf commented May 8, 2024

Thanks for this @duncanmcclean, I really appreciate it!

@martyf martyf merged commit 9a2cf63 into mitydigital:main May 8, 2024
@duncanmcclean
Copy link
Contributor Author

No problem! 😄

@duncanmcclean duncanmcclean deleted the statamic-5 branch May 8, 2024 09:05
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