Skip to content

Tests: Use Codeception 5.2 or 5.3 based on PHP version#820

Merged
n7studios merged 10 commits intomainfrom
fix-codeception-tests
May 7, 2025
Merged

Tests: Use Codeception 5.2 or 5.3 based on PHP version#820
n7studios merged 10 commits intomainfrom
fix-codeception-tests

Conversation

@n7studios
Copy link
Copy Markdown
Contributor

@n7studios n7studios commented May 7, 2025

Summary

Codeception 5.3 and higher drops support for PHP 8.1, resulting in test errors:

Screenshot 2025-05-07 at 12 39 59

This PR resolves by allowing composer to install a variety of Codeception and Behat versions, depending on the PHP version.

Testing

Existing tests pass.

Checklist

@n7studios n7studios self-assigned this May 7, 2025
@n7studios n7studios added the bug label May 7, 2025
@n7studios n7studios changed the title Tests: Use Codeception 5.2.1 or lower Tests: Use Codeception 5.2 or 5.3 based on PHP version May 7, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, corydhmiller and noelherrick and removed request for a team May 7, 2025 06:30
@n7studios n7studios marked this pull request as ready for review May 7, 2025 06:30
@n7studios n7studios merged commit f821ef4 into main May 7, 2025
4 of 5 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios deleted the fix-codeception-tests branch May 8, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants