I’ve just finished writing a WordPress plugin implementing shortcode tag based autocompletion based on values retrieved from a database given an id set on a cookie. The plugin has...
  • May 7, 2022
  • 0 Comments
I’m working on some tests for WordPress, and I discovered that WordPress’ PHPUnit automatically captures and doesn’t send emails (using MockPHPMailer) when I try to use wp_mail. I’ve looked,...
  • May 6, 2022
  • 0 Comments
I am writing a few unit tests for a plugin that I have developed. However I seem to be hung up on testing one (seemingly) simple piece of code....
  • May 3, 2022
  • 0 Comments
IT Nursery
Using answers on this site and from other resources, I have started writing my next plugin using PHPUnit tests and the WordPress test environment. Distilling down what I have...
  • May 2, 2022
  • 0 Comments