Added unit tests for #27244
This commit is contained in:
parent
7340c9af44
commit
1839feae91
|
@ -123,7 +123,15 @@ class WC_Tests_Validation extends WC_Unit_Test_Case {
|
||||||
array( false, WC_Validation::is_postcode( '7850', 'BA' ) ),
|
array( false, WC_Validation::is_postcode( '7850', 'BA' ) ),
|
||||||
);
|
);
|
||||||
|
|
||||||
return array_merge( $it, $gb, $us, $ch, $br, $ca, $nl, $si, $ba );
|
$jp = array(
|
||||||
|
array( true, WC_Validation::is_postcode( '1340088', 'JP' ) ),
|
||||||
|
array( true, WC_Validation::is_postcode( '134-0088', 'JP' ) ),
|
||||||
|
array( false, WC_Validation::is_postcode( '1340-088', 'JP' ) ),
|
||||||
|
array( false, WC_Validation::is_postcode( '12345', 'JP' ) ),
|
||||||
|
array( false, WC_Validation::is_postcode( '0123', 'JP' ) ),
|
||||||
|
);
|
||||||
|
|
||||||
|
return array_merge( $it, $gb, $us, $ch, $br, $ca, $nl, $si, $ba, $jp );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue