Fixed coding standards for tests

This commit is contained in:
Claudio Sanches 2016-10-04 18:57:01 -03:00
parent 226482baf5
commit 36797a382a
3 changed files with 3 additions and 4 deletions

View File

@ -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/
]

View File

@ -221,7 +221,7 @@ class WC_Helper_Product {
$taxonomy_data = array(
'labels' => array(
'name' => __( 'size', 'woocommerce' ),
)
),
);
register_taxonomy( 'pa_size', array( 'product' ), $taxonomy_data );

View File

@ -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';
}