mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Do not save refund id after ppcp_refund_order
This commit is contained in:
parent
3b1407aab4
commit
7a994f8d28
3 changed files with 14 additions and 9 deletions
|
@ -48,9 +48,11 @@ class OrderRefundTest extends ModularTestCase
|
|||
|
||||
$this->refundProcessor
|
||||
->expects('refund')
|
||||
->andReturn('456qwe')
|
||||
->once();
|
||||
|
||||
ppcp_refund_order($wcOrder, 42.0, 'reason');
|
||||
$refund_id = ppcp_refund_order($wcOrder, 42.0, 'reason');
|
||||
$this->assertEquals('456qwe', $refund_id);
|
||||
}
|
||||
|
||||
public function testOrderWithoutId(): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue