Skip to content

Commit 21f012e

Browse files
committed
Test for customerId
1 parent 8be2d04 commit 21f012e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/Message/AuthorizeRequestTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,27 @@ public function testPaymentMethodNonce()
8787
'paymentMethodNonce' => 'abc123'
8888
)
8989
);
90+
91+
public function testCustomerId()
92+
{
93+
$this->request->initialize(
94+
array(
95+
'amount' => '10.00',
96+
'transactionId' => '684',
97+
'testMode' => false,
98+
'taxExempt' => false,
99+
'card' => array(
100+
'firstName' => 'Kayla',
101+
'shippingCompany' => 'League',
102+
),
103+
'customerId' => 'abc123'
104+
)
105+
);
106+
107+
$data = $this->request->getData();
108+
$this->assertSame('abc123', $data['customerId']);
109+
$this->assertArrayNotHasKey('customerId', $data);
110+
}
90111

91112
$data = $this->request->getData();
92113
$this->assertSame('abc123', $data['paymentMethodNonce']);

0 commit comments

Comments
 (0)