public function PayPalPaymentPPSPaymentExecution::assertPaymentExecution in PayPal for Payment 7
Asserts a correct payment execution.
2 calls to PayPalPaymentPPSPaymentExecution::assertPaymentExecution()
- PayPalPaymentPPSPaymentExecution::testPaymentExecution in paypal_payment_pps/
tests/ PayPalPaymentPPSPaymentExecution.test - Tests payment execution.
- PayPalPaymentPPSPaymentExecution::testSandboxPaymentExecution in paypal_payment_pps/
tests/ PayPalPaymentPPSPaymentExecution.test - Tests payment execution using the sandbox server.
File
- paypal_payment_pps/
tests/ PayPalPaymentPPSPaymentExecution.test, line 60 - Contains \PayPalPaymentPPSPaymentExecution.
Class
- PayPalPaymentPPSPaymentExecution
- Tests payment execution.
Code
public function assertPaymentExecution(PaymentMethod $payment_method) {
$data = array();
$this
->drupalPost('paypal_payment_pps_test/form/' . $payment_method->pmid, $data, t('Pay'));
$this
->drupalPost(NULL, array(), t('Continue'));
$this
->drupalPost(NULL, array(), t('Submit'));
$this
->assertURL('<front>');
}