The 'phpunit' container has been removed. Please use 'wp-env run tests-cli --env-cwd=wp-content/path/to/plugin phpunit' instead.
As the error indicates, test commands should be changed to use the tests-cli container instead.
Note that the test-debug command was also removed because debugging will be enabled with the regular test/test-multisite commands if a testing environment is started with wp-env start --xdebug.
Steps to Test
wp-env start
composer install
composer run test
composer run test-multisite
Description
In the latest version of
wp-env
, thephpunit
container was removed in favor of global installation ofphpunit
. Here is an example failure from this test:As the error indicates, test commands should be changed to use the
tests-cli
container instead.Note that the
test-debug
command was also removed because debugging will be enabled with the regulartest
/test-multisite
commands if a testing environment is started withwp-env start --xdebug
.Steps to Test