How do I activate a plugin while testing?
How do I activate a plugin while testing?
How do I activate a plugin while testing?
As you’ve found there’s a whole raft of outdated, poor and convoluted information around unit testing in WP currently. However Josh Pollock, a well respected WordPress dev and Core contributor did a YouTube series on testing in WordPress least year which I found very helpful. As I’ve been on the unit testing in WordPress journey … Read more
To do this properly you really need to be using a proper git workflow and something like capistrano or ansible for deploying your changes to stage. The database imports and exports will need to handled separately.
Congrats on your first client. I’m glad you are looking around to make sure that you start off on the right foot. Like anything that you start in life, your experience will increase over time and the more you practice. However, we live in a digital age and popular open-source platforms such as WordPress have … Read more
You’re on a Mac! You have two of the three components you need for a Web server by default. Apache and PHP. All you need to do now is get MySQL. There are plenty of tutorials on how to do this and can be found with Google. Of course NW Tech recommendation of MAMP is … Read more
if your using the same database you just copy the entire site over .. if you want to use the same database with its own tables for storage, delete the wp-config file and as your setting up the 2nd WordPress site just select a different table pre-curser .. the first would be wp_ .. the … Read more
What is a good way to test that plugin upgrades have completed properly?
Unit Test ignores stubbed method second time around in a dataProvider
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install You have to COPY the index.php ot to the root and edit it to add the sub dir path.
Although I usually use a similar approach, I suggest you give sqlyog a try if you are in need of a professional solution that can quickly deploy mysql databases: https://www.webyog.com/ For content, use rsync, which is the fastest way to synchronize local and online. Hope it helps. Good luck.