Development7 min read
WordPress plugin unit testing with wp-env and PHPUnit
WordPress plugin unit testing stays repeatable when pure PHP tests stay small and WordPress integration tests run in a wp-env environment. Set up wp-env, bootstrap the WordPress PHPUnit files through WP_TESTS_DIR, write tests with WP_UnitTestCase, then run the same command in GitHub Actions.
- WordPress
- Plugins
- PHP

