*/
require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Import_MatchExternalIdTest
+ */
class WebTest_Import_MatchExternalIdTest extends ImportCiviSeleniumTestCase {
protected function setUp() {
/*
* Helper function to provide data for contribution import for Individual.
*/
+ /**
+ * @return array
+ */
function _contributionIndividualCSVData() {
$firstName1 = substr(sha1(rand()), 0, 7);
$lastName1 = substr(sha1(rand()), 0, 7);
/*
* Helper function to provide data for membership import for Individual.
*/
+ /**
+ * @return array
+ */
function _memberIndividualCSVData() {
$memTypeParams = $this->webtestAddMembershipType();
/*
* Helper function to provide data for participant import for Individual.
*/
+ /**
+ * @return array
+ */
function _participantIndividualCSVData() {
$eventInfo = $this->_addNewEvent();
*
* @return int external id
*/
+ /**
+ * @param $firstName
+ * @param $lastName
+ * @param $externalId
+ *
+ * @return mixed
+ */
function _addContact($firstName, $lastName, $externalId) {
$this->openCiviPage('contact/add', 'reset=1&ct=Individual');
*
* @return array $params event details of newly created event
*/
+ /**
+ * @param array $params
+ *
+ * @return array
+ */
function _addNewEvent($params = array(
)) {
if (empty($params)) {
- // 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->click("link=Online Registration");
$this->waitForElementPresent("_qf_Registration_upload-bottom");
- $this->check("is_online_registration");
+ $this->click("is_online_registration");
$this->assertChecked("is_online_registration");
- $this->fillRichTextField("intro_text", "Fill in all the fields below and click Continue.");
+ $this->fillRichTextField("intro_text", "Fill in all the fields below and click Continue.", 'CKEditor', TRUE);
// enable confirmation email
$this->click("CIVICRM_QFID_1_is_email_confirm");