Adds a unit test for wc_format_country_state_string().
This commit is contained in:
parent
f57f306326
commit
05b2d4597c
|
@ -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' ) );
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue