Skip to content

Commit f4f360d

Browse files
committed
Proper syntax (pay attention Steve)
1 parent 21f012e commit f4f360d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/Message/AuthorizeRequestTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ public function testPaymentMethodNonce()
8787
'paymentMethodNonce' => 'abc123'
8888
)
8989
);
90-
90+
91+
$data = $this->request->getData();
92+
$this->assertSame('abc123', $data['paymentMethodNonce']);
93+
$this->assertArrayNotHasKey('paymentMethodToken', $data);
94+
}
95+
9196
public function testCustomerId()
9297
{
9398
$this->request->initialize(
@@ -106,12 +111,8 @@ public function testCustomerId()
106111

107112
$data = $this->request->getData();
108113
$this->assertSame('abc123', $data['customerId']);
109-
$this->assertArrayNotHasKey('customerId', $data);
110-
}
111-
112-
$data = $this->request->getData();
113-
$this->assertSame('abc123', $data['paymentMethodNonce']);
114114
$this->assertArrayNotHasKey('paymentMethodToken', $data);
115+
$this->assertArrayNotHasKey('paymentMethodNonce', $data);
115116
}
116117

117118
public function testSubMerchantSale()

0 commit comments

Comments
 (0)