diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php index cf412c85e2..8e984572a8 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php @@ -1,5 +1,8 @@ expectedDeprecated(); } + /** + * After a test method runs, reset any state in WordPress the test method might have changed. + */ function tearDown() { global $wpdb, $wp_query, $wp, $post; $wpdb->query( 'ROLLBACK' );