Do not save refund id after ppcp_refund_order

This commit is contained in:
Alex P 2023-03-17 17:23:33 +02:00
parent 3b1407aab4
commit 7a994f8d28
No known key found for this signature in database
GPG key ID: 54487A734A204D71
3 changed files with 14 additions and 9 deletions

View file

@ -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 {