protected function WebformCivicrmTestBase::enableBillingSection in Webform CiviCRM Integration 8.5
Enable Billing Section on the contribution tab.
6 calls to WebformCivicrmTestBase::enableBillingSection()
- ContributionDummyTest::testOverThousand in tests/
src/ FunctionalJavascript/ ContributionDummyTest.php - ContributionDummyTest::testSubmitContribution in tests/
src/ FunctionalJavascript/ ContributionDummyTest.php - 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.
File
- tests/
src/ FunctionalJavascript/ WebformCivicrmTestBase.php, line 456
Class
Namespace
Drupal\Tests\webform_civicrm\FunctionalJavascriptCode
protected function enableBillingSection() {
$this
->getSession()
->getPage()
->selectFieldOption('Enable Billing Address?', 'Yes');
$this
->assertSession()
->assertWaitOnAjaxRequest();
$this
->htmlOutput();
$this
->assertSession()
->checkboxChecked("Billing First Name");
$this
->assertSession()
->checkboxNotChecked("Billing Middle Name");
$this
->assertSession()
->checkboxChecked("Billing Last Name");
$this
->assertSession()
->checkboxChecked("Street Address");
$this
->assertSession()
->checkboxChecked("Postal Code");
$this
->assertSession()
->checkboxChecked("City");
$this
->assertSession()
->checkboxChecked("Country");
$this
->assertSession()
->checkboxChecked("State/Province");
}