Skip to content

Commit

Permalink
fix unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Mar 11, 2024
1 parent dec9cd4 commit 9d041d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"core": "WordPress/WordPress#6.4",
"port": 20000,
"phpVersion": "8.1",
"plugins": [ "." ],
"env": {
"tests": {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
],
"require": {
"php": ">=7.4"
"php": ">=8.1"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "*",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "GPL-2.0+",
"scripts": {
"wp-env": "wp-env",
"test-unit-php": "wp-env run phpunit 'phpunit -c /var/www/html/wp-content/plugins/schedule-terms/phpunit.xml.dist --verbose'",
"test-unit-php": "wp-env run cli --env-cwd='/var/www/html/wp-content/plugins/schedule-terms' composer test",
"packages-update": "wp-scripts packages-update",
"lint-php": "./vendor/bin/phpcs --standard=./phpcs.xml.dist --warning-severity=6",
"test": "wp-scripts test-unit-js",
Expand Down

0 comments on commit 9d041d8

Please sign in to comment.