You are here

function PaymentTestPaymentLineItemFormElementWebTestCase::testSubmission in Payment 7

Test a regular submission.

File

tests/payment_test/tests/PaymentTestPaymentLineItemFormElementWebTestCase.test, line 63
Contains class PaymentTestPaymentLineItemFormElementWebTestCase.

Class

PaymentTestPaymentLineItemFormElementWebTestCase
Tests the payment_line_item form element.

Code

function testSubmission() {
  $this
    ->drupalGet('payment_test-form-element-payment-line-item');
  $this
    ->LineItemElements();
  $this
    ->SubmitButton(TRUE);
  $this
    ->drupalPost(NULL, array(), t('Add a line item'));
  $this
    ->LineItemElements(1);
  $this
    ->SubmitButton(FALSE);
}