protected function WebformCivicrmTestBase::fillBillingFields in Webform CiviCRM Integration 8.5
Insert values in billing fields.
Parameters
array $params:
6 calls to WebformCivicrmTestBase::fillBillingFields()
- ContributionDummyTest::fillCardAndSubmit in tests/
src/ FunctionalJavascript/ ContributionDummyTest.php - Fill Card Details and submit.
- ContributionIatsTest::testSubmit1stPayContribution in tests/
src/ FunctionalJavascript/ ContributionIatsTest.php - ContributionIatsTest::testSubmitContribution in tests/
src/ FunctionalJavascript/ ContributionIatsTest.php - EventTest::testSubmitEventParticipant in tests/
src/ FunctionalJavascript/ EventTest.php - Event Participant submission.
- MembershipSubmissionTest::testSubmitMembershipAutoRenew in tests/
src/ FunctionalJavascript/ MembershipSubmissionTest.php
File
- tests/
src/ FunctionalJavascript/ WebformCivicrmTestBase.php, line 475
Class
Namespace
Drupal\Tests\webform_civicrm\FunctionalJavascriptCode
protected function fillBillingFields($params) {
$this
->getSession()
->getPage()
->fillField('Billing First Name', $params['first_name']);
$this
->getSession()
->getPage()
->fillField('Billing Last Name', $params['last_name']);
$this
->getSession()
->getPage()
->fillField('Street Address', $params['street_address']);
$this
->getSession()
->getPage()
->fillField('City', $params['city']);
$this
->getSession()
->getPage()
->selectFieldOption('Country', $params['country']);
$this
->assertSession()
->assertWaitOnAjaxRequest();
$this
->getSession()
->getPage()
->selectFieldOption('State/Province', $params['state_province']);
$this
->getSession()
->getPage()
->fillField('Postal Code', $params['postal_code']);
}