Skip to content

Swapnil V. Patil

Swapnil V. Patil

  • Home
  • About
  • Blog
  • Contact

Unit testing

Installing Theme Unit Test Data with wp-cli

  • November 5, 2017
  • Swapnil Patil Swapnil Patil
  • Plugins, Themes, Unit testing, WordPress

If building a theme for the wordpress.org theme repository this will almost certainly be tested. For those using WP-CLI there is a quick and easy way to install and then remove this test data. Naturally, you will need to install and setup WP-CLI before proceeding.

Recent Posts

  •  A Dream within a Dream 
  • Redirect after logging in based on the user role
  • Easily import DB using wp-cli
  • Getting the most of your WordPress Dashboard
  • Debugging WordPress

Recent Comments

  • Aaron on Installing WP-CLI on shared hosting
  • pradeepphule on Call a navigation menu using a shortcode
  • Swapnil V. Patil on Getting the most of your WordPress Dashboard
  • printmk on Getting the most of your WordPress Dashboard
  • Swapnil V. Patil on Installing WP-CLI on shared hosting

Archives

  • September 2019
  • May 2019
  • December 2018
  • October 2018
  • June 2018
  • May 2018
  • January 2018
  • November 2017
  • September 2017
  • October 2016
  • August 2016
  • March 2016
  • January 2016
  • December 2015
  • October 2015
  • September 2015
  • August 2015
  • June 2015
  • November 2014
  • October 2012

Categories

  • Blogging
  • code
  • Contribution
  • debugging
  • devops
  • Meetups
  • Plugins
  • Polyglots
  • Themes
  • Translation
  • Uncategorized
  • Unit testing
  • WooCommerce
  • WordCamp
  • WordPress
  • WordPress.com
  • wp-admin
  • wp-cli

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Swapnil Patil

This website uses cookies to improve your experience. We'll assume you accept this policy as long as you are using this websiteAcceptView Policy