Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
composer.lock
file from version control (it shouldn't be committed for packages)statamic/cms
version constraint incomposer.json
TestCase
AddonTestCase
class which'll do all the bootstrapping stuff that previously had to be done manually. See the docssetConfig
method was removed in favour ofsetSites
.preload
parameter on Spatie'sGoogleFonts
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.