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