Skip to content

Commit

Permalink
use old array notation
Browse files Browse the repository at this point in the history
  • Loading branch information
rondogency committed Jul 12, 2018
1 parent be4d594 commit d2d8143
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions tests/Message/FetchRefundsRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ public function testTransactionIdOrTimesNotBoth()
*/
public function testSendSuccess()
{
$this->setMockSoapResponse('FetchRefundsSuccess.xml', [
$this->setMockSoapResponse('FetchRefundsSuccess.xml', array(
'REFUND_ID' => $this->refundId,
'REFUND_REFERENCE' => $this->refundReference,
'TRANSACTION_ID' => $this->transactionId,
'TRANSACTION_REFERENCE' => $this->transactionReference,
'CURRENCY' => $this->currency,
'AMOUNT' => $this->amount,
'TIMESTAMP' => $this->timestamp
]);
));

$response = $this->request->send();

Expand Down Expand Up @@ -191,9 +191,9 @@ public function testSendSuccess()
*/
public function testSendByTimeSuccess()
{
$this->setMockSoapResponse('FetchRefundsByTimeSuccess.xml', [
$this->setMockSoapResponse('FetchRefundsByTimeSuccess.xml', array(
'TIMESTAMP' => $this->timestamp
]);
));

$response = $this->request->send();

Expand Down
20 changes: 10 additions & 10 deletions tests/Message/FetchTransactionRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function testTransactionIdOrReferenceRequired()
*/
public function testSendSuccess()
{
$this->setMockSoapResponse('FetchTransactionSuccess.xml', [
$this->setMockSoapResponse('FetchTransactionSuccess.xml', array(
'TRANSACTION_ID' => $this->transactionId,
'TRANSACTION_REFERENCE' => $this->transactionReference,
'CURRENCY' => $this->currency,
Expand All @@ -132,7 +132,7 @@ public function testSendSuccess()
'CVV_CODE' => $this->cvvCode,
'AVS_CODE' => $this->avsCode,
'TIMESTAMP' => $this->timestamp
]);
));

$response = $this->request->send();

Expand Down Expand Up @@ -203,11 +203,11 @@ public function testSendSuccess()
*/
public function testSendByReferenceSuccess()
{
$this->setMockSoapResponse('FetchTransactionByReferenceSuccess.xml', [
$this->setMockSoapResponse('FetchTransactionByReferenceSuccess.xml', array(
'TRANSACTION_ID' => $this->transactionId,
'TRANSACTION_REFERENCE' => $this->transactionReference,
'TIMESTAMP' => $this->timestamp
]);
));

$response = $this->request->send();

Expand All @@ -228,9 +228,9 @@ public function testSendByReferenceSuccess()
*/
public function testSendFailure()
{
$this->setMockSoapResponse('FetchTransactionFailure.xml', [
$this->setMockSoapResponse('FetchTransactionFailure.xml', array(
'TRANSACTION_ID' => $this->transactionId,
]);
));

$response = $this->request->send();

Expand All @@ -248,9 +248,9 @@ public function testSendFailure()
*/
public function testSendByReferenceFailure()
{
$this->setMockSoapResponse('FetchTransactionByReferenceFailure.xml', [
$this->setMockSoapResponse('FetchTransactionByReferenceFailure.xml', array(
'TRANSACTION_REFERENCE' => $this->transactionReference,
]);
));

$response = $this->request->send();

Expand All @@ -268,7 +268,7 @@ public function testSendByReferenceFailure()
*/
public function testSendPayPalSuccess()
{
$this->setMockSoapResponse('FetchPayPalTransactionSuccess.xml', [
$this->setMockSoapResponse('FetchPayPalTransactionSuccess.xml', array(
'TRANSACTION_ID' => $this->transactionId,
'TRANSACTION_REFERENCE' => $this->transactionReference,
'CURRENCY' => $this->currency,
Expand All @@ -284,7 +284,7 @@ public function testSendPayPalSuccess()
'TOKEN' => $this->token,
'PAYPAL_EMAIL' => $this->paypalEmail,
'TIMESTAMP' => $this->timestamp
]);
));

$response = $this->request->send();

Expand Down
8 changes: 4 additions & 4 deletions tests/Message/FetchTransactionsRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ public function testCustomerIdOrTimesNotBoth()
*/
public function testSendSuccess()
{
$this->setMockSoapResponse('FetchTransactionsSuccess.xml', [
$this->setMockSoapResponse('FetchTransactionsSuccess.xml', array(
'TIMESTAMP' => $this->timestamp
]);
));

$response = $this->request->send();

Expand All @@ -199,9 +199,9 @@ public function testSendSuccess()
*/
public function testSendByTimeSuccess()
{
$this->setMockSoapResponse('FetchTransactionsByTimeSuccess.xml', [
$this->setMockSoapResponse('FetchTransactionsByTimeSuccess.xml', array(
'TIMESTAMP' => $this->timestamp
]);
));

$response = $this->request->send();

Expand Down

0 comments on commit d2d8143

Please sign in to comment.