Skip to content

Commit 497ea02

Browse files
committed
Added test for AIM XML customer email.
1 parent 5369725 commit 497ea02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/Message/AIMAuthorizeRequestTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ class AIMAuthorizeRequestTest extends TestCase
1212
public function setUp()
1313
{
1414
$this->request = new AIMAuthorizeRequest($this->getHttpClient(), $this->getHttpRequest());
15+
$card = $this->getValidCard();
16+
$card['email'] = 'example@example.net';
1517
$this->request->initialize(
1618
array(
1719
'clientIp' => '10.0.0.1',
1820
'amount' => '12.00',
1921
'customerId' => 'cust-id',
20-
'card' => $this->getValidCard(),
22+
'card' => $card,
2123
'duplicateWindow' => 0
2224
)
2325
);
@@ -30,6 +32,7 @@ public function testGetData()
3032
$this->assertEquals('authOnlyTransaction', $data->transactionRequest->transactionType);
3133
$this->assertEquals('10.0.0.1', $data->transactionRequest->customerIP);
3234
$this->assertEquals('cust-id', $data->transactionRequest->customer->id);
35+
$this->assertEquals('example@example.net', $data->transactionRequest->customer->email);
3336

3437
// Issue #38 Make sure the transactionRequest properties are correctly ordered.
3538
// This feels messy, but works.

0 commit comments

Comments
 (0)