I have to test the function where it calls wp_get_attachment_image_src. How do I add an image for testing, because right now if I call this method it returns false....
  • May 19, 2022
  • 0 Comments
I’m currently on the process of unit testing a plugin using the WordPress unit testing framework. In one of the functions to be tested,it will send mails to users...
  • May 18, 2022
  • 0 Comments
I’m trying to set up automated tests for my WP- and BP-dependent plugin, as described in: https://codex.buddypress.org/developer/automated-testing/ https://make.wordpress.org/core/handbook/automated-testing/ https://codex.buddypress.org/developer/automated-testing/writing-automated-tests-for-buddypress-dependent-plugins/ And so I’ve initialized a testing framework by: running wp...
  • May 16, 2022
  • 0 Comments
One of the things that my plugin does is creates a number of SQL tables as part of a versioning function (that is run under the admin_init hook as...
  • May 14, 2022
  • 0 Comments