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.

One Reply to “Export current database as testing mocks”

Leave a Reply

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