Skip to content

Commit 024a8eb

Browse files
committed
Unify test command naming with wordpress-develop test commands
1 parent 1dc9eec commit 024a8eb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/wp-tests-phpunit-run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Wrap the "composer run wp-tests-phpunit" command to process tests
2+
* Wrap the "composer run wp-tests-php" command to process tests
33
* that are expected to error and fail at the moment.
44
*
55
* This makes sure that the CI job passes, while explicitly tracking
@@ -108,7 +108,7 @@ console.log( 'Expected failures:', expectedFailures );
108108
try {
109109
try {
110110
execSync(
111-
`composer run wp-test-phpunit -- --log-junit=phpunit-results.xml --verbose`,
111+
`composer run wp-test-php -- --log-junit=phpunit-results.xml --verbose`,
112112
{ stdio: 'inherit' }
113113
);
114114
console.log( '\n⚠️ All tests passed, checking if expected errors/failures occurred...' );

.github/workflows/wp-tests-phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: WordPress Tests
1+
name: WordPress PHPUnit Tests
22

33
on:
44
push:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"npm --prefix wordpress run env:start",
5050
"npm --prefix wordpress run env:install"
5151
],
52-
"wp-test-phpunit": [
52+
"wp-test-php": [
5353
"rm -rf wordpress/src/wp-content/database && npm --prefix wordpress run test:php --"
5454
],
5555
"wp-test-clean": [

0 commit comments

Comments
 (0)