Move tests to new tests dir
This commit is contained in:
parent
ec82f8865c
commit
80e8157c12
|
@ -801,12 +801,6 @@ class WC_Tests_Formatting_Functions extends WC_Unit_Test_Case {
|
||||||
// JP postcode.
|
// JP postcode.
|
||||||
$this->assertEquals( '999-9999', wc_format_postcode( '9999999', 'JP' ) );
|
$this->assertEquals( '999-9999', wc_format_postcode( '9999999', 'JP' ) );
|
||||||
|
|
||||||
// Test LV postcode without mandatory country code.
|
|
||||||
$this->assertEquals( 'LV-1337', wc_format_postcode( '1337', 'LV' ) );
|
|
||||||
|
|
||||||
// Test LV postcode with incorrect format (no dash).
|
|
||||||
$this->assertEquals( 'LV-1337', wc_format_postcode( 'lv1337', 'LV' ) );
|
|
||||||
|
|
||||||
// Test empty NL postcode.
|
// Test empty NL postcode.
|
||||||
$this->assertEquals( '', wc_format_postcode( '', 'NL' ) );
|
$this->assertEquals( '', wc_format_postcode( '', 'NL' ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,12 @@ class WC_Formatting_Functions_Test extends \WC_Unit_Test_Case {
|
||||||
// JP postcode.
|
// JP postcode.
|
||||||
$this->assertEquals( '999-9999', wc_format_postcode( '9999999', 'JP' ) );
|
$this->assertEquals( '999-9999', wc_format_postcode( '9999999', 'JP' ) );
|
||||||
|
|
||||||
|
// Test LV postcode without mandatory country code.
|
||||||
|
$this->assertEquals( 'LV-1337', wc_format_postcode( '1337', 'LV' ) );
|
||||||
|
|
||||||
|
// Test LV postcode with incorrect format (no dash).
|
||||||
|
$this->assertEquals( 'LV-1337', wc_format_postcode( 'lv1337', 'LV' ) );
|
||||||
|
|
||||||
// Test empty NL postcode.
|
// Test empty NL postcode.
|
||||||
$this->assertEquals( '', wc_format_postcode( '', 'NL' ) );
|
$this->assertEquals( '', wc_format_postcode( '', 'NL' ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue