Customer needs to be defined

This commit is contained in:
Mike Jolley 2015-07-07 12:51:05 +01:00
parent 6773b74770
commit ac6cc96d35
1 changed files with 1 additions and 2 deletions

View File

@ -12,6 +12,7 @@ class Customer extends \WC_Unit_Test_Case {
*/
public function test_get_taxable_address() {
$customer = \WC_Helper_Customer::create_mock_customer();
$base_store_address = \WC_Helper_Customer::get_expected_store_location();
$customer_address = $customer->get_taxable_address(); // Default is geolocation!
@ -20,8 +21,6 @@ class Customer extends \WC_Unit_Test_Case {
$original_tax_based_on = \WC_Helper_Customer::get_tax_based_on();
$original_customer_details = \WC_Helper_Customer::get_customer_details();
$customer = \WC_Helper_Customer::create_mock_customer();
// Create dummy product, and add the product to the cart.
$product = \WC_Helper_Product::create_simple_product();