This project supplies environment to init WordPress plugin to start TDD.
Plugin Unit Tests – WP-CLI — WordPress.org
You can skip much steps to prepare environment to run WP-CLI. And you will be able to get files for test with few steps.
- Docker
- Docker Compose
cd docker-compose-init-phpunit-wordpress-plugin
docker-compose up -ddocker exec -it wordpress /bin/bashwp --allow-root core install --url=localhost --title=temporary --admin_user=admin [email protected]wp --allow-root scaffold plugin-tests (plugin directory name)Then, you'll get files for test.