public function get_formatted_shipping_full_name() { /* translators: 1: first name 2: last name */ return sprintf(_x('%1$s %2$s', 'full name', 'woocommerce'), $this->get_shipping_first_name(), $this->get_shipping_last_name()); }
/** * Test: get_formatted_shipping_full_name */ function test_get_formatted_shipping_full_name() { $object = new WC_Order(); $object->set_shipping_first_name('Barney'); $object->set_shipping_last_name('Rubble'); $this->assertEquals('Barney Rubble', $object->get_formatted_shipping_full_name()); }