Fix test_get_rates unit test

This commit is contained in:
Mike Jolley 2015-01-05 16:39:45 +00:00
parent d3bf31664d
commit 6dced09940
1 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,9 @@ class WC_Tests_Tax extends WC_Unit_Test_Case {
$wpdb->query( "DELETE FROM {$wpdb->prefix}woocommerce_tax_rates" );
$wpdb->query( "DELETE FROM {$wpdb->prefix}woocommerce_tax_rate_locations" );
$customer_location = WC_Tax::get_tax_location();
$tax_rate = array(
'tax_rate_country' => 'GB',
'tax_rate_country' => $customer_location[0],
'tax_rate_state' => '',
'tax_rate' => '20.0000',
'tax_rate_name' => 'VAT',