Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix php unit changes made in wp-env #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test:js": "wp-scripts test-unit-js"
},
"devDependencies": {
"@wordpress/env": "^7.0.0",
"@wordpress/env": "^8.0.0",
"@wordpress/eslint-plugin": "^12.4.0",
"@wordpress/jest-preset-default": "^8.1.1",
"@wordpress/scripts": "24.0.0"
Expand Down
2 changes: 1 addition & 1 deletion phpunit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ sed -i.bak "s/REPLACE_WITH_PLUGIN_DIR_NAME/$plugindirname/g" .wp-env.json
npx -p @wordpress/env wp-env start

# Run PHPunit inside wp-env, targeting the plugin in question.
npx -p @wordpress/env wp-env run --env-cwd=\"wp-content/wpps-scripts\" tests-wordpress phpunit -c ./phpunit.xml.dist /var/www/html/wp-content/plugins/$plugindirname
npx -p @wordpress/env wp-env run --env-cwd='wp-content/wpps-scripts' tests-wordpress vendor/bin/phpunit -c ./phpunit.xml.dist /var/www/html/wp-content/plugins/$plugindirname