+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$name = $firstName . " " . $lastName;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
// Find additional Participant
$name = $participantfname . " " . $participantlname;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[6]/td[2]", preg_quote($status));
// delete all custom data
if (isset($cfId)) {
$name = $firstName . " " . $lastName;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
$name = $participantfname . " " . $participantlname;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
$name = $firstName2 . " " . $lastName2;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
$name = $participantfname2 . " " . $participantlname2;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
}
/**
- * @param $customGrpId1
+ * Get custom field ID.
+ *
+ * @param int $customGrpId1
*
* @return array
*/
}
/**
- * @param $profilefield
+ * Test profile creation.
+ *
+ * @param array $profileField
* @param int $location
* @param $type
*
* @return null
*/
- public function _testCreateProfile($profilefield, $location = 0, $type) {
- $locationfields = array(
+ public function _testCreateProfile($profileField, $location = 0, $type) {
+ $locationFields = array(
'supplemental_address_1',
'supplemental_address_2',
'city',
);
// Add new profile.
- $profilename = "Profile_" . substr(sha1(rand()), 0, 7);
+ $profileName = "Profile_" . substr(sha1(rand()), 0, 7);
$this->openCiviPage("admin/uf/group", "reset=1");
$this->click('newCiviCRMProfile-top');
$this->waitForElementPresent('_qf_Group_next-top');
//Name of profile
- $this->type('title', $profilename);
+ $this->type('title', $profileName);
$this->click('uf_group_type_Profile');
$this->click('_qf_Group_next-top');
$this->waitForPageToLoad($this->getTimeoutMsec());
$profileId = $this->urlArg('gid');
//Add field to profile_testCreateProfile
- foreach ($profilefield as $key => $value) {
+ foreach ($profileField as $key => $value) {
$this->openCiviPage("admin/uf/group/field/add", "reset=1&action=add&gid=$profileId");
- if (in_array($value, $locationfields)) {
+ if (in_array($value, $locationFields)) {
$this->select("field_name[0]", "value={$type}");
$this->select("field_name[1]", "value={$value}");
$this->select("field_name[2]", "value={$location}");
}
/**
+ * Test adding multiple profiles.
+ *
* @param int $profileId
*
* @return null
* @param $email1
* @param $email2
*/
- function _testEventRegistration(
+ public function _testEventRegistration(
$eventPageId, $customId, $firstName, $lastName,
$participantfname, $participantlname, $email1, $email2
) {
$this->type("email-Primary", $email1);
$this->type("first_name", $firstName);
$this->type("last_name", $lastName);
- $this->type("street_address-1", "Test street addres");
+ $this->type("street_address-1", "Test street address");
$this->type("city-1", "Mumbai");
$this->type("postal_code-1", "2354");
$this->select("state_province-1", "value=1001");
$this->type("email-Primary", $email2);
$this->type("first_name", $participantfname);
$this->type("last_name", $participantlname);
- $this->type("street_address-1", "participant street addres");
+ $this->type("street_address-1", "participant street address");
$this->type("city-1", "pune");
$this->type("postal_code-1", "2354");
$this->select("state_province-1", "value=1001");
$this->type("city-Primary", "primecity");
$this->type("phone-Primary-1", "98667764");
$this->type("postal_code-Primary", "6548");
-
+ $this->waitForElementPresent('nick_name');
$this->type("nick_name", "Nick1");
$this->type("url-1", "http://www.part.com");
$this->type("email-Primary", $email4);
$this->type("first_name", $firstName2);
$this->type("last_name", $lastName2);
- $this->type("street_address-1", "Test street addres");
+ $this->type("street_address-1", "Test street address");
$this->type("city-1", "Mumbai");
$this->type("postal_code-1", "2354");
$this->select("state_province-1", "value=1001");
$this->type("email-Primary", $email3);
$this->type("first_name", $participantfname2);
$this->type("last_name", $participantlname2);
- $this->type("street_address-1", "participant street addres");
+ $this->type("street_address-1", "participant street address");
$this->type("city-1", "pune");
$this->type("postal_code-1", "2354");
$this->select("state_province-1", "value=1001");
$this->click("_qf_Field_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
}
+
}