fix option name

This commit is contained in:
Nicola Mustone 2015-03-03 12:47:13 +01:00
parent a18d2bd158
commit 42107fa37b
1 changed files with 4 additions and 4 deletions

View File

@ -57,12 +57,12 @@ class WC_Tests_Order_Functions extends WC_Unit_Test_Case {
$default = get_option( 'woocommerce_ship_to_destination' ); $default = get_option( 'woocommerce_ship_to_destination' );
update_option( 'woocommerce_shop_to_destination', 'shipping' ); update_option( 'woocommerce_ship_to_destination', 'shipping' );
$this->assertEquals( false, wc_ship_to_billing_address_only() ); $this->assertEquals( false, wc_ship_to_billing_address_only() );
update_option( 'woocommerce_shop_to_destination', 'billing_only' ); update_option( 'woocommerce_ship_to_destination', 'billing_only' );
$this->assertEquals( false, wc_ship_to_billing_address_only() ); $this->assertEquals( true, wc_ship_to_billing_address_only() );
update_option( 'woocommerce_shop_to_destination', $default ); update_option( 'woocommerce_ship_to_destination', $default );
} }
} }