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 -d
docker exec -it wordpress /bin/bash
wp --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.