function PaymentTestPaymentLineItemFormElementWebTestCase::testAJAXSubmission in Payment 7
Test an AJAX submission.
File
- tests/
payment_test/ tests/ PaymentTestPaymentLineItemFormElementWebTestCase.test, line 75 - Contains class PaymentTestPaymentLineItemFormElementWebTestCase.
Class
- PaymentTestPaymentLineItemFormElementWebTestCase
- Tests the payment_line_item form element.
Code
function testAJAXSubmission() {
$this
->drupalPostAJAX('payment_test-form-element-payment-line-item', array(), 'payment-line-item', NULL, array(), array(), 'payment-test-form-payment-line-item');
$this
->LineItemElements(1);
$this
->SubmitButton(FALSE);
}