Fixed coding standards for tests
This commit is contained in:
parent
226482baf5
commit
36797a382a
|
@ -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/
|
||||
]
|
||||
|
|
|
@ -221,7 +221,7 @@ class WC_Helper_Product {
|
|||
$taxonomy_data = array(
|
||||
'labels' => array(
|
||||
'name' => __( 'size', 'woocommerce' ),
|
||||
)
|
||||
),
|
||||
);
|
||||
register_taxonomy( 'pa_size', array( 'product' ), $taxonomy_data );
|
||||
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue