diff --git a/Gruntfile.js b/Gruntfile.js index 08fc6596a32..30ccb44f7d3 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -243,7 +243,6 @@ module.exports = function( grunt ) { '!includes/gateways/simplify-commerce/includes/Simplify/**', // Exclude simplify commerce SDK '!includes/libraries/**', // Exclude libraries/ '!node_modules/**', // Exclude node_modules/ - '!tests/**', // Exclude tests/ '!tmp/**', // Exclude tmp/ '!vendor/**' // Exclude vendor/ ] diff --git a/tests/framework/helpers/class-wc-helper-product.php b/tests/framework/helpers/class-wc-helper-product.php index d7ec1788a60..ea7d5989354 100644 --- a/tests/framework/helpers/class-wc-helper-product.php +++ b/tests/framework/helpers/class-wc-helper-product.php @@ -221,7 +221,7 @@ class WC_Helper_Product { $taxonomy_data = array( 'labels' => array( 'name' => __( 'size', 'woocommerce' ), - ) + ), ); register_taxonomy( 'pa_size', array( 'product' ), $taxonomy_data ); diff --git a/tests/unit-tests/coupon/crud.php b/tests/unit-tests/coupon/crud.php index f2b20da6abf..1a2404696ad 100644 --- a/tests/unit-tests/coupon/crud.php +++ b/tests/unit-tests/coupon/crud.php @@ -16,9 +16,9 @@ class WC_Tests_CouponCRUD extends WC_Unit_Test_Case { function get_function_name( $function ) { if ( 'exclude_product_ids' === $function ) { $function = 'excluded_product_ids'; - } else if ( 'exclude_product_categories' === $function ) { + } elseif ( 'exclude_product_categories' === $function ) { $function = 'excluded_product_categories'; - } else if ( 'customer_email' === $function ) { + } elseif ( 'customer_email' === $function ) { $function = 'email_restrictions'; }