fair-plugin/.wp-env.json
Chuck Adams 8859783c8f
Phase 1: migrate test infrastructure to tests/unit/
Rename tests/phpunit/ → tests/unit/, phpunit.xml.dist → tests/unit/phpunit.xml.
Adjust all paths in phpunit.xml and multisite.xml for new location.
Update composer.json scripts: test → test:unit, test:multisite → test:unit:multisite.
Update coverage:* paths and package.json npm scripts.
Bump .wp-env.json PHP version 7.4 → 8.0 (hard floor per AGENTS.md).
All 19 existing tests pass (5 test classes, 30 assertions).

Known issue: composer.lock has PHP 8.2-bound dev deps; tests-cli needs --ignore-platform-reqs on PHP 8.0.

Signed-off-by: Chuck Adams <chaz@chaz.works>
2026-06-09 10:59:50 -06:00

13 lines
251 B
JSON

{
"phpVersion": "8.0",
"plugins": [
"norcross/airplane-mode",
"johnbillion/query-monitor#3.18.0"
],
"mappings": {
"wp-content/plugins/plugin": "."
},
"config": {
"WP_TESTS_PHPUNIT_POLYFILLS_PATH": "./vendor/yoast/phpunit-polyfills"
}
}