Export current database as testing mocks

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.

Join the Conversation

1 Comment

Leave a comment

Your email address will not be published. Required fields are marked *