Move tests to new tests dir

This commit is contained in:
Saggre 2022-02-01 15:52:46 +02:00 committed by vedanshujain
parent ec82f8865c
commit 80e8157c12
2 changed files with 6 additions and 6 deletions

View File

@ -801,12 +801,6 @@ class WC_Tests_Formatting_Functions extends WC_Unit_Test_Case {
// JP postcode.
$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.
$this->assertEquals( '', wc_format_postcode( '', 'NL' ) );
}

View File

@ -43,6 +43,12 @@ class WC_Formatting_Functions_Test extends \WC_Unit_Test_Case {
// JP postcode.
$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.
$this->assertEquals( '', wc_format_postcode( '', 'NL' ) );
}