Remove duplicate tests.

This commit is contained in:
Saggre 2022-03-23 10:41:13 +02:00 committed by barryhughes
parent 488c74b472
commit 74e27e6f26
1 changed files with 11 additions and 0 deletions

View File

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