Adds a unit test for wc_format_country_state_string().

This commit is contained in:
Matty 2016-02-16 09:31:29 +02:00
parent f57f306326
commit 05b2d4597c
1 changed files with 9 additions and 0 deletions

View File

@ -153,5 +153,14 @@ class Core_Functions extends \WC_Unit_Test_Case {
$this->assertEquals( '', $default['state'] ); $this->assertEquals( '', $default['state'] );
} }
/**
* Test wc_format_country_state_string().
*
* @since 2.6.0
*/
public function test_wc_format_country_state_string() {
$this->assertEquals( array( 'country' => 'US', 'state' => 'CA' ), wc_format_country_state_string( 'US:CA' ) );
}
} }