You are here

public function PayPalPaymentPPSPaymentExecution::testSandboxPaymentExecution in PayPal for Payment 7

Tests payment execution using the sandbox server.

File

paypal_payment_pps/tests/PayPalPaymentPPSPaymentExecution.test, line 48
Contains \PayPalPaymentPPSPaymentExecution.

Class

PayPalPaymentPPSPaymentExecution
Tests payment execution.

Code

public function testSandboxPaymentExecution() {
  $payment_method = $this
    ->paymentMethodCreate(2, payment_method_controller_load('PayPalPaymentPPSPaymentMethodController'));
  $payment_method->controller_data = array(
    'server' => PayPalPaymentPPSPaymentMethodController::SANDBOX_SERVER_URL,
  );
  entity_save('payment_method', $payment_method);
  $this
    ->assertPaymentExecution($payment_method);
}