How to test a WordPress plugin through the upgrade automatically feature

Last week I had released a version of a WordPress plugin that works if the user was doing a fresh install, however if they already had the plugin and upgraded it using the WordPress upgrade automatically feature, problems occurred and some of the database elements were erased. So I had to revert back immediately.

I was wondering if there was a way to test the plugin through the upgrade automatically functionality before hand instead of having to release it and hoping you get it right the first time.

Thanks in advance,

Omar

2 Answers
2

If I am not mistaken upgrade process is essentially:

  1. Deactivating plugin.
  2. Replacing files with newer version.
  3. Re-activating plugin.

Had you treid to simply reproduce this sequence manually?

Leave a Comment