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/gateways/simplify-commerce/includes/Simplify/**', // Exclude simplify commerce SDK
|
||||||
'!includes/libraries/**', // Exclude libraries/
|
'!includes/libraries/**', // Exclude libraries/
|
||||||
'!node_modules/**', // Exclude node_modules/
|
'!node_modules/**', // Exclude node_modules/
|
||||||
'!tests/**', // Exclude tests/
|
|
||||||
'!tmp/**', // Exclude tmp/
|
'!tmp/**', // Exclude tmp/
|
||||||
'!vendor/**' // Exclude vendor/
|
'!vendor/**' // Exclude vendor/
|
||||||
]
|
]
|
||||||
|
|
|
@ -221,7 +221,7 @@ class WC_Helper_Product {
|
||||||
$taxonomy_data = array(
|
$taxonomy_data = array(
|
||||||
'labels' => array(
|
'labels' => array(
|
||||||
'name' => __( 'size', 'woocommerce' ),
|
'name' => __( 'size', 'woocommerce' ),
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
register_taxonomy( 'pa_size', array( 'product' ), $taxonomy_data );
|
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 ) {
|
function get_function_name( $function ) {
|
||||||
if ( 'exclude_product_ids' === $function ) {
|
if ( 'exclude_product_ids' === $function ) {
|
||||||
$function = 'excluded_product_ids';
|
$function = 'excluded_product_ids';
|
||||||
} else if ( 'exclude_product_categories' === $function ) {
|
} elseif ( 'exclude_product_categories' === $function ) {
|
||||||
$function = 'excluded_product_categories';
|
$function = 'excluded_product_categories';
|
||||||
} else if ( 'customer_email' === $function ) {
|
} elseif ( 'customer_email' === $function ) {
|
||||||
$function = 'email_restrictions';
|
$function = 'email_restrictions';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue