public function get_billing_city($context = 'view') { return $this->get_address_prop('city', 'billing', $context); }
/** * Test: get_billing_city */ function test_get_billing_city() { $object = new WC_Order(); $set_to = 'Bedrock'; $object->set_billing_city($set_to); $this->assertEquals($set_to, $object->get_billing_city()); }