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 Comment

George March 26, 2016 Reply

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)…

Leave a Reply