public function get_shipping_country($context = 'view') { return $this->get_address_prop('country', 'shipping', $context); }
/** * Test: get_shipping_country */ function test_get_shipping_country() { $object = new WC_Order(); $set_to = 'US'; $object->set_shipping_country($set_to); $this->assertEquals($set_to, $object->get_shipping_country()); }