user avatar
user avatar
user avatar
J.D.
  • Member for 9 years, 4 months
  • Last seen more than 2 years ago
27 votes
Accepted

Where can I find documentation for the WP_UnitTestCase factory classes?

20 votes
Accepted

Best way to end WordPress ajax request and why?

12 votes
Accepted

Wordpress Unit Testing - Cannot Create Tables

12 votes

Best practice way to delete user meta data during plugin uninstall?

10 votes
Accepted

how to escape wp_oembed_get for phpcs

9 votes
Accepted

How to handle optional end date in compare clause in meta_query

9 votes
Accepted

PHPUnit testing WordPress Plugin

9 votes
Accepted

How to add an image for unit testing?

9 votes

how to remove or disable woocommerce order review in checkout page?

8 votes

Is there any way of of making an admin-ajax request without the use of die()?

8 votes
Accepted

Using wp_mail during an integration test

8 votes

Proper unit testing in WordPress

7 votes
Accepted

When unit testing a plugin, does the plugin need to be in the wp-content/plugins directory of the WordPress tests install?

7 votes
Accepted

register_uninstall_hook() vs uninstall.php - which one is better way to handle plugin uninstallation script?

6 votes
Accepted

Implement phpunit testing on a plugin

5 votes

Plugin Unit Test for Table and Option Creation

5 votes
Accepted

Writing a unit test for add_menu_page

5 votes
Accepted

Sorting search results by taxonomy terms

5 votes
Accepted

Delete options from all blogs on plugin uninstall from a network/multisite

4 votes
Accepted

Writing test cases for a WordPress Plugin that has translations

4 votes
Accepted

DataBase connection problem with PHPUnit and WordPress

4 votes
Accepted

What areas to Unit test while building a plugin?

4 votes
Accepted

How to create a test that calls is_front_page in phpunit?

4 votes

Automatic updates in plugin - not hosted on wordpress repository

4 votes
Accepted

Plugin development with unit tests

3 votes

How to check if an admin (sub)menu already exists?

3 votes
Accepted

WordPress function gives different results outside vs inside PHPUnit test

3 votes

How to initialize something in unit test before the init hook being called?

3 votes
Accepted

How exactly *does* unit testing work for themes?

3 votes

How to get a translated string from a language other than the current one?