diff --git a/tests/Message/RefundRequestTest.php b/tests/Message/RefundRequestTest.php index d6762ae4..58d91e6c 100644 --- a/tests/Message/RefundRequestTest.php +++ b/tests/Message/RefundRequestTest.php @@ -6,6 +6,9 @@ class RefundRequestTest extends TestCase { + /** @var RefundRequest $request */ + private $request; + public function setUp() { $this->request = new RefundRequest($this->getHttpClient(), $this->getHttpRequest()); @@ -30,6 +33,16 @@ public function testRefundApplicationFee() $this->assertEquals("true", $data['refund_application_fee']); } + public function testShouldSetReverseTransferFlag() + { + $this->request->setTransactionReference('ch_12RgN9L7XhO9mI')->setAmount('10.00'); + $this->request->setReverseTransfer(true); + + $data = $this->request->getData(); + + $this->assertEquals("true", $data['reverse_transfer']); + } + public function testSendSuccess() { $this->setMockHttpResponse('RefundSuccess.txt');