public function get_amount($context = 'view') { return $this->get_prop('amount', $context); }
/** * Test: get_refund_amount */ function test_get_refund_amount() { $object = new WC_Order_Refund(); $object->set_amount(20); $this->assertEquals('20.00', $object->get_amount()); }