@@ 10-19 (lines=10) @@ | ||
7 | class RefundTest extends TestCase |
|
8 | { |
|
9 | ||
10 | public function testRefundBankAccountFull() |
|
11 | { |
|
12 | $this->mockHttpSession($this->body_order); |
|
13 | $order = $this->createOrder()->create(); |
|
14 | $this->mockHttpSession($this->body_billet_pay); |
|
15 | $payment = $order->payments()->get('PAY-N2TXFLV4PP7Y'); |
|
16 | $this->mockHttpSession($this->body_refund_full_bankaccount); |
|
17 | $refund = $payment->refunds() |
|
18 | ->bankAccountFull('CHECKING', '001', '1584', '9', '00210169', '6', $order->getCustomer()); |
|
19 | $this->assertNotEmpty($refund->getId()); |
|
20 | } |
|
21 | ||
22 | public function testRefundBankAccountPartial() |
|
@@ 22-31 (lines=10) @@ | ||
19 | $this->assertNotEmpty($refund->getId()); |
|
20 | } |
|
21 | ||
22 | public function testRefundBankAccountPartial() |
|
23 | { |
|
24 | $this->mockHttpSession($this->body_order); |
|
25 | $order = $this->createOrder()->create(); |
|
26 | $this->mockHttpSession($this->body_billet_pay); |
|
27 | $payment = $order->payments()->get('PAY-N2TXFLV4PP7Y'); |
|
28 | $this->mockHttpSession($this->body_refund_partial_bankaccount); |
|
29 | $refund = $payment->refunds() |
|
30 | ->bankAccountPartial(20000, 'SAVING', '001', '1584', '9', '00210169', '6', $order->getCustomer()); |
|
31 | $this->assertNotEmpty($refund->getId()); |
|
32 | } |
|
33 | } |
|
34 |