Ejemplo n.º 1
0
 /**
  * Failed Capture Transaction missing TXN id
  *
  * @expectedException MissingRequestParameterException
  * @dataProvider missingParametersProvider
  */
 public function testFailedCaptureTransactionMissingTxnId($request, $response)
 {
     $litle = TestHelper::mockLitleRequest('captureRequest', $response);
     $result = (new CaptureRequest([], [], $litle))->make($request);
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider missingParameterProvider
  * @expectedException MissingRequestParameterException
  */
 public function testFailedCreditTRansactionMissingParameter($request, $response)
 {
     $litle = TestHelper::mockLitleRequest('creditRequest', $response);
     $result = (new CreditRequest(['mode' => 'production'], [], $litle))->make($request);
 }
Ejemplo n.º 3
0
 /**
  * @expectedException MissingRequestParameterException
  * @dataProvider missingParameterTransactions
  */
 public function testFailedAuthTransactionMissingParameter($request, $response)
 {
     $litle = TestHelper::mockLitleRequest('authorizationRequest', $request);
     $response = (new AuthorizationRequest([], [], $litle))->make($response);
 }
Ejemplo n.º 4
0
 /**
  * Missing Parameter Failures
  *
  * @dataProvider missingParameterProvider
  * @expectedException MissingRequestParameterException
  */
 public function testMissingParameterFailures($request, $response)
 {
     $litle = TestHelper::mockLitleRequest('registerTokenRequest', $response);
     $result = (new RegisterTokenRequest(['mode' => 'production'], [], $litle))->make($request);
 }
 /**
  * Failed auth reversal due to missing txn id
  *
  * @expectedException MissingRequestParameterException
  */
 public function testFailedAuthReversalMissingTxnId()
 {
     $transaction = static::transactions()['02-missing-txnid'];
     $litle = TestHelper::mockLitleRequest('authReversalRequest', $transaction['response']);
     $result = (new AuthorizationReversalRequest([], [], $litle))->make($transaction['request']);
 }