Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
sudiptpa authored and StyleCIBot committed Nov 26, 2016
1 parent cba93b6 commit ff56ae8
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
14 changes: 7 additions & 7 deletions tests/Message/DirectPostAuthorizeRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ public function setUp()

$this->request->initialize(
array(
'merchantId' => 'XYZ0010',
'merchantId' => 'XYZ0010',
'transactionPassword' => 'abcd1234',
'amount' => '12.00',
'returnUrl' => 'https://www.abc.com/return',
'card' => array(
'number' => '4444333322221111',
'amount' => '12.00',
'returnUrl' => 'https://www.abc.com/return',
'card' => array(
'number' => '4444333322221111',
'expiryMonth' => '6',
'expiryYear' => '2030',
'cvv' => '123',
'expiryYear' => '2030',
'cvv' => '123',
),
)
);
Expand Down
58 changes: 29 additions & 29 deletions tests/Message/DirectPostCompletePurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ public function testGenerateResponseFingerprint()
{
$this->request->initialize(
array(
'amount' => '465.18',
'amount' => '465.18',
'transactionPassword' => 'abcd1234',
)
);

$data = array(
'timestamp' => '20161125123332',
'merchant' => 'XYZ0010',
'refid' => '222',
'timestamp' => '20161125123332',
'merchant' => 'XYZ0010',
'refid' => '222',
'summarycode' => '2',
);

Expand All @@ -35,26 +35,26 @@ public function testSuccess()
{
$this->request->initialize(
array(
'amount' => '12.00',
'amount' => '12.00',
'transactionPassword' => 'abcd1234',
'transactionId' => 'ORDER-ZYX8',
'transactionId' => 'ORDER-ZYX8',
)
);

$this->getHttpRequest()->query->replace(
array(
'timestamp' => '20161125130241',
'timestamp' => '20161125130241',
'callback_status_code' => '-1',
'fingerprint' => 'e30eb8381bc41201fbdf54a021d8228a3fbb6a6f',
'txnid' => '271337',
'merchant' => 'XYZ0010',
'restext' => 'Approved',
'rescode' => '00',
'expirydate' => '20161126',
'settdate' => '20161126',
'refid' => 'ORDER-ZYX8',
'pan' => '444433...111',
'summarycode' => '1',
'fingerprint' => 'e30eb8381bc41201fbdf54a021d8228a3fbb6a6f',
'txnid' => '271337',
'merchant' => 'XYZ0010',
'restext' => 'Approved',
'rescode' => '00',
'expirydate' => '20161126',
'settdate' => '20161126',
'refid' => 'ORDER-ZYX8',
'pan' => '444433...111',
'summarycode' => '1',
)
);

Expand All @@ -75,23 +75,23 @@ public function testSuccess()
public function testFailure()
{
$this->request->initialize(array(
'amount' => '465.18',
'amount' => '465.18',
'transactionPassword' => 'abcd1234',
));

$this->getHttpRequest()->query->replace(array(
'timestamp' => '20161126051715',
'timestamp' => '20161126051715',
'callback_status_code' => '404',
'fingerprint' => 'cd75e2ef38cf63a2fa390024539acc7691eebc1d',
'txnid' => '274279',
'merchant' => 'XYZ0010',
'restext' => 'Customer Dispute',
'rescode' => '18',
'expirydate' => '102030',
'settdate' => '20161126',
'refid' => 'ORDER-ZYX8',
'pan' => '444433...111',
'summarycode' => '2',
'fingerprint' => 'cd75e2ef38cf63a2fa390024539acc7691eebc1d',
'txnid' => '274279',
'merchant' => 'XYZ0010',
'restext' => 'Customer Dispute',
'rescode' => '18',
'expirydate' => '102030',
'settdate' => '20161126',
'refid' => 'ORDER-ZYX8',
'pan' => '444433...111',
'summarycode' => '2',
));

$response = $this->request->send();
Expand Down
14 changes: 7 additions & 7 deletions tests/Message/DirectPostPurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ public function setUp()

$this->request->initialize(
array(
'merchantId' => 'XYZ0010',
'merchantId' => 'XYZ0010',
'transactionPassword' => 'abcd1234',
'amount' => '12.00',
'returnUrl' => 'https://www.example.com/return',
'card' => array(
'number' => '4444333322221111',
'amount' => '12.00',
'returnUrl' => 'https://www.example.com/return',
'card' => array(
'number' => '4444333322221111',
'expiryMonth' => '06',
'expiryYear' => '2020',
'cvv' => '123',
'expiryYear' => '2020',
'cvv' => '123',
),
)
);
Expand Down

0 comments on commit ff56ae8

Please sign in to comment.