Mocking your ideal application state for tests still takes a fair amount of effort. It would be cool to see a WP-CLI command to:
- Stash your current database.
- Interactively create your mocked data.
- Export mocked data for use in tests.
- Restore your database.
From a Twitter thread with Joe.
One Comment
Was thinking about same idea for a while. WP CLI package to create Laravel like seeding would be awesome (https://laravel.com/docs/5.2/seeding)…