Skip to content

Commit ff9dc9d

Browse files
committed
Extended PR #78 test to CIM gateway.
1 parent 8216074 commit ff9dc9d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/CIMGatewayTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public function setUp()
2020

2121
$this->gateway = new CIMGateway($this->getHttpClient(), $this->getHttpRequest());
2222

23+
$this->gateway->initialize([
24+
'hashSecret' => 'HASHYsecretyThang',
25+
]);
26+
2327
$this->createCardOptions = array(
2428
'email' => "[email protected]",
2529
'card' => $this->getValidCard(),
@@ -62,6 +66,15 @@ public function testDeveloperEndpoint()
6266
);
6367
}
6468

69+
// Added for PR #78
70+
public function testHashSecret()
71+
{
72+
$this->assertEquals(
73+
'HASHYsecretyThang',
74+
$this->gateway->getHashSecret()
75+
);
76+
}
77+
6578
public function testCreateCardSuccess()
6679
{
6780
$this->setMockHttpResponse(array('CIMCreateCardSuccess.txt','CIMGetPaymentProfileSuccess.txt'));

0 commit comments

Comments
 (0)