What's Changed
- Bump phpunit/phpunit from 9.6.22 to 9.6.33 by @dependabot[bot] in #82
- Add AGENTS.md and clear UserMeta between tests by @kraftbj in #83
- Load: Define ABSPATH before SQLite cleanup and scope cleanup to sqlite engine by @kraftbj in #85
- Allow WordPress 7.0 in roots/wordpress constraint by @kraftbj in #84
- Use Composer event object to determine WordPress installation path. by @zinigor in #86
- chore: pin third-party GitHub Actions to commit SHAs by @mahangu in #89
- Bump composer/composer from 2.9.7 to 2.10.2 by @dependabot[bot] in #91
- Bump the actions-major group with 2 updates by @dependabot[bot] in #90
- Fix: minor grammatical issues in README.md by @mehrazmorshed in #87
- CI: Fix flaky composer-normalize step and pin WordPress version legs by @kraftbj in #92
WordPress 7.0 support
The roots/wordpress constraint is now ^6.6 || ^7.0, so projects using WorDBless can run their tests against WordPress 7.0. This is the headline change: 0.6.0 capped you at WordPress 6.x, and the widened constraint has been sitting on trunk untagged since February.
CI now runs all three test suites against pinned WordPress 6.6 and 7.0 legs in addition to the lowest/locked/highest matrix, so neither major loses coverage when the next one ships.
Other notes
Metadata for users is now cleared between tests, matching what already happened for options, posts, post meta, and users. If a test relied on user meta surviving from one test method to the next, it will need to set that meta up explicitly.
WorDBless\Composer\InstallDropin::copy() now takes the Composer Event object and reads extra.wordpress-install-dir from the root package, so a custom WordPress install directory gets the db.php drop-in in the right place. Used as documented, as a post-install-cmd and post-update-cmd script handler, this needs no change on your side. Any code calling InstallDropin::copy() directly will need to pass the event.
The SQLite cleanup in Load::load() only runs for the sqlite engine now, and ABSPATH is defined before it runs.
New Contributors
- @dependabot[bot] made their first contribution in #82
- @zinigor made their first contribution in #86
- @mahangu made their first contribution in #89
- @mehrazmorshed made their first contribution in #87
Full Changelog: 0.6.0...0.6.1