protected function WebformCivicrmTestBase::configureContributionTab in Webform CiviCRM Integration 8.5
7 calls to WebformCivicrmTestBase::configureContributionTab()
- ContributionDummyTest::testOnePageDonation in tests/
src/ FunctionalJavascript/ ContributionDummyTest.php - Test One-page donation
- ContributionDummyTest::testOverThousand in tests/
src/ FunctionalJavascript/ ContributionDummyTest.php - ContributionDummyTest::testSubmitContribution in tests/
src/ FunctionalJavascript/ ContributionDummyTest.php - ContributionPayLaterTest::testSubmitContribution in tests/
src/ FunctionalJavascript/ ContributionPayLaterTest.php - EventTest::testParticipantContactReference in tests/
src/ FunctionalJavascript/ EventTest.php - Test contact reference field for participants.
File
- tests/
src/ FunctionalJavascript/ WebformCivicrmTestBase.php, line 109
Class
Namespace
Drupal\Tests\webform_civicrm\FunctionalJavascriptCode
protected function configureContributionTab($disableReceipt = FALSE, $pp = NULL) {
//Configure Contribution tab.
$this
->getSession()
->getPage()
->clickLink('Contribution');
$this
->getSession()
->getPage()
->selectFieldOption('civicrm_1_contribution_1_contribution_enable_contribution', 1);
$this
->assertSession()
->assertWaitOnAjaxRequest();
$this
->assertSession()
->pageTextContains('You must enable an email field for Contact 1 in order to process transactions.');
$this
->getSession()
->getPage()
->pressButton('Enable It');
$this
->assertSession()
->assertWaitOnAjaxRequest();
$this
->getSession()
->getPage()
->selectFieldOption('Currency', 'USD');
$this
->getSession()
->getPage()
->selectFieldOption('Financial Type', 1);
$this
->assertSession()
->assertWaitOnAjaxRequest();
if ($pp) {
$this
->getSession()
->getPage()
->selectFieldOption('Payment Processor', $pp);
}
}