public function get_payment_method_title($context = 'view') { return $this->get_prop('payment_method_title', $context); }
/** * Test: get_payment_method_title */ function test_get_payment_method_title() { $object = new WC_Order(); $set_to = 'PayPal'; $object->set_payment_method_title($set_to); $this->assertEquals($set_to, $object->get_payment_method_title()); }