// Log in using webtestLogin() method
$this->webtestLogin();
- // We need a payment processor
- $processorName = 'Webtest Dummy' . substr(sha1(rand()), 0, 7);
+ // Use default payment processor
+ $processorName = 'Test Processor';
$this->webtestAddPaymentProcessor($processorName);
// create an event
$this->waitForPageToLoad($this->getTimeoutMsec());
// verify number of registered participants
- $this->assertStringsPresent(array('2 Result'));
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", '2 Results');
}
function testParticipantCountWithPriceset() {
// Log in using webtestLogin() method
$this->webtestLogin();
- // We need a payment processor
- $processorName = 'Webtest Dummy' . substr(sha1(rand()), 0, 7);
+ // Use default payment processor
+ $processorName = 'Test Processor';
$this->webtestAddPaymentProcessor($processorName);
// create priceset
else {
$this->_testAddMultipleChoiceOptions($field['options']);
}
- $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom');
+ $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom', FALSE);
+ $this->waitForText("crm-notification-container", "Price Field '$label' has been saved.");
}
// create event.
$this->waitForPageToLoad($this->getTimeoutMsec());
// verify number of participants records and total participant count
- $this->assertStringsPresent(array('2 Result', 'Actual participant count : 24'));
+ $this->assertStringsPresent(array('2 Results', 'Actual participant count : 24'));
// CRM-7953, check custom search Price Set Details for Event
// Participants
}
/**
- * @param $params
+ * @param array $params
*
* @return string
*/
}
/**
- * @param $eventParams
+ * @param array $eventParams
* @param $participants
* @param $priceFieldOptionCounts
*/
$this->click('_qf_Custom_refresh-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
- $tableHeaders = array('Contact Id', 'Participant Id', 'Name');
+ $tableHeaders = array('Contact ID', 'Participant ID', 'Name');
$tableHeaders = array_merge($tableHeaders, array_keys(current($priceFieldOptionCounts)));
$tdnum = 2;