Remove duplicate tests.
This commit is contained in:
parent
488c74b472
commit
74e27e6f26
|
@ -17,4 +17,15 @@ class WC_Formatting_Functions_Test extends \WC_Unit_Test_Case {
|
|||
$this->assertEquals( 'DUMMYCOUPON', wc_sanitize_coupon_code( 'DUMMYCOUPON' ) );
|
||||
$this->assertEquals( 'a&a', wc_sanitize_coupon_code( 'a&a' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Test wc_format_postcode() function.
|
||||
*/
|
||||
public function test_wc_format_postcode() {
|
||||
// IE postcode.
|
||||
$this->assertEquals( 'D02 AF30', wc_format_postcode( 'D02AF30', 'IE' ) );
|
||||
|
||||
// PT postcode.
|
||||
$this->assertEquals( '1000-205', wc_format_postcode( '1000205', 'PT' ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue