mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2026-08-06 13:10:27 +08:00
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>
13 lines
251 B
JSON
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"
|
|
}
|
|
}
|