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:

  1. Stash your current database.
  2. Interactively create your mocked data.
  3. Export mocked data for use in tests.
  4. Restore your database.

From a Twitter thread with Joe.


Hand Built is Daniel Bachhuber, an effective developer with technology leadership you can trust.

How can I help?

Hit me at [email protected] with a short note about what you'd like to do.

My roots are WordPress and publishing, and I love pretty much everything related to web development (architecture, performance, security, etc.). When not working with clients, I also maintain WP-CLI (WordPress' command line interface) and other open source projects.