test: migrate test suite to Pest 4 and fix CI matrix#49
Merged
el-schneider merged 3 commits intomainfrom Mar 26, 2026
Merged
Conversation
The laravel/framework dependency is already defined by statamic/cms, making the explicit constraint unnecessary. Removing it avoids the need to update this package every time a new Laravel version is released. Also removes the dev-laravel-13 branch reference from the statamic/cms constraint as it is no longer needed after #47 was merged.
- Convert PHPUnit test class to Pest 4 (fixes PHPUnit 12 @test annotation breakage) - Tighten dev deps: pestphp/pest ^4.0, testbench ^9.17||^10.11||^11.0 - Trim CI matrix: drop L10, S4, prefer-lowest; actually use matrix.statamic - Exclude impossible combos (L13+S5, L11+S6, L13+PHP 8.2) - Update checkout action to v4, phpunit.xml.dist schema to 12.5
simonerd
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Includes the change from #48 (cherry-picked) plus:
pestphp/pest ^4.0,testbench ^9.17||^10.11||^11.0prefer-lowest; actually usematrix.statamicin install stepWhy
The existing CI was failing on
main(14/44 jobs broken) due to:@testannotation support — all tests used/** @test */with non-test_method namesmatrix.statamicwas never used in the install command — S4/S5 jobs were identicalprefer-lowestpulled ancient testbench versions that crash with\$latestResponseerrorsSupersedes #48.