We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b24ebe8 commit e54383aCopy full SHA for e54383a
tests/Message/AIMRefundRequestTest.php
@@ -29,5 +29,24 @@ public function testGetData()
29
$this->assertSame('60O2UZ', $data['x_trans_id']);
30
$this->assertSame($card['number'], $data['x_card_num']);
31
$this->assertSame('12.00', $data['x_amount']);
32
+
33
+ $this->assertArrayHasKey('x_exp_date', $data);
34
+ }
35
36
+ public function testRefundWithSimplifiedCard()
37
+ {
38
+ $simplifiedCard = array(
39
+ 'firstName' => 'Example',
40
+ 'lastName' => 'User',
41
+ 'number' => '1111',
42
+ );
43
44
+ $this->request->setCard($simplifiedCard);
45
46
+ $data = $this->request->getData();
47
48
+ $this->assertSame($simplifiedCard['number'], $data['x_card_num']);
49
50
+ $this->assertArrayNotHasKey('x_exp_date', $data);
51
}
52
0 commit comments