Running npm run test:php
is broken after wp-env update to wp-env 5.0.0
#7263
Labels
Milestone
npm run test:php
is broken after wp-env update to wp-env 5.0.0
#7263
Bug Description
With the update to wp-env 5.0.0, running
npm run test:php
now results in a fatal error. This package update had a backwards-incompatible change as explained in the release notes:We didn't catch it via CI because GHA doesn't run Docker to run the tests. When running in the local Docker-based dev environment, however, it is broken.
Expected Behaviour
Running PHPUnit tests, both
npm run test:php
andnpm run test:php:xdebug
, should work successfully.Screenshots
PHP Version
No response
Plugin Version
2.3.0
AMP plugin template mode
Standard, Transitional, Reader
WordPress Version
No response
Site Health
No response
Gutenberg Version
No response
OS(s) Affected
No response
Browser(s) Affected
No response
Device(s) Affected
No response
Acceptance Criteria
No response
Implementation Brief
No response
QA Testing Instructions
No response
Demo
No response
Changelog Entry
No response
The text was updated successfully, but these errors were encountered: