public function get_billing_last_name($context = 'view') { return $this->get_address_prop('last_name', 'billing', $context); }
/** * Test: get_billing_last_name */ function test_get_billing_last_name() { $object = new WC_Order(); $set_to = 'Flintstone'; $object->set_billing_last_name($set_to); $this->assertEquals($set_to, $object->get_billing_last_name()); }