diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php index 5e03f077b694..06340c852b53 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php @@ -84,7 +84,7 @@ public function add_post_terms( $post_id, $terms, $taxonomy, $append = true ) { * @return null|WP_Error|WP_Term WP_Term on success. WP_error if taxonomy does not exist. Null for miscellaneous failure. */ public function create_and_get( $args = array(), $generation_definitions = null ) { - $term_id = $this->create( $args, $generation_definitions ); + $term_id = $this->create( $args, $generation_definitions ); if ( is_wp_error( $term_id ) ) { return $term_id;