mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-16 08:33:43 +03:00
Tools: Add phpunit test support inside wp-env container
This commit is contained in:
parent
bb25e0c78b
commit
50c21b4e85
|
@ -16,6 +16,7 @@
|
||||||
"wp-content/plugins": "./plugins",
|
"wp-content/plugins": "./plugins",
|
||||||
"wp-content/themes": "./themes",
|
"wp-content/themes": "./themes",
|
||||||
"wp-content/mu-plugins/0-sandbox.php": "./.env/0-sandbox.php",
|
"wp-content/mu-plugins/0-sandbox.php": "./.env/0-sandbox.php",
|
||||||
|
"wp-content/phpunit.xml.dist": "./phpunit.xml.dist",
|
||||||
"wp-cli.local.yml": "./wp-cli.local.yml"
|
"wp-cli.local.yml": "./wp-cli.local.yml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
"wp-env": "wp-env",
|
"wp-env": "wp-env",
|
||||||
"lint:php": "composer lint ./themes/wporg-5ftf ./plugins/wporg-5ftf",
|
"lint:php": "composer lint ./themes/wporg-5ftf ./plugins/wporg-5ftf",
|
||||||
"format:php": "composer format ./themes/wporg-5ftf ./plugins/wporg-5ftf",
|
"format:php": "composer format ./themes/wporg-5ftf ./plugins/wporg-5ftf",
|
||||||
|
"test:php": "wp-env run tests-cli ./wp-content/mu-plugins/vendor/bin/phpunit -c ./wp-content/phpunit.xml.dist"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"themes/wporg-5ftf",
|
"themes/wporg-5ftf",
|
||||||
|
|
Loading…
Reference in a new issue