<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- function testAddEvent() {
+ public function testAddEvent() {
// Log in using webtestLogin() method
$this->webtestLogin('admin');
$this->open($registerUrl);
$this->waitForElementPresent('_qf_Register_upload-bottom');
- $firstName = 'Jane' .substr(sha1(rand()), 0, 7);
+ $firstName = 'Jane' . substr(sha1(rand()), 0, 7);
$lastName = 'Doe' . substr(sha1(rand()), 0, 7);
$this->type('first_name', "$firstName");
$this->type('last_name', "$lastName");
preg_quote("$lastName, $firstName")
);
- $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span/a[1]",
+ $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span",
preg_quote("$lastName1, $firstName1")
);
- $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span/a[2]",
+ $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span",
preg_quote("$lastName2, $firstName2")
);
- $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span/a[3]",
+ $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span",
preg_quote("$lastName3, $firstName3")
);
* @param $eventTitle
* @param $eventDescription
*/
- function _testAddEventInfo($eventTitle, $eventDescription) {
+ public function _testAddEventInfo($eventTitle, $eventDescription) {
$this->waitForElementPresent("_qf_EventInfo_upload-bottom");
$this->select("event_type_id", "value=1");
/**
* @param $streetAddress
*/
- function _testAddLocation($streetAddress) {
+ public function _testAddLocation($streetAddress) {
// Wait for Location tab form to load
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForElementPresent("_qf_Location_upload-bottom");
$this->type("address_1_street_address", $streetAddress);
$this->type("address_1_city", "San Francisco");
$this->type("address_1_postal_code", "94117");
+ $this->select('address_1_country_id', 'United States');
$this->select("address_1_state_province_id", "value=1004");
$this->type("email_1_email", "info@civicrm.org");
* @param $registerIntro
* @param bool $multipleRegistrations
*/
- function _testAddOnlineRegistration($registerIntro, $multipleRegistrations = FALSE) {
+ public function _testAddOnlineRegistration($registerIntro, $multipleRegistrations = FALSE) {
// Go to Online Registration tab
$this->click("link=Online Registration");
$this->waitForElementPresent("_qf_Registration_upload-bottom");
* @param $thankYouMsg
* @param $eventTitle
*/
- function _testAddTellAFriend($subject, $thankYouMsg, $eventTitle) {
+ public function _testAddTellAFriend($subject, $thankYouMsg, $eventTitle) {
// Go to Tell A Friend Tab
$this->click('link=Tell a Friend');
$this->waitForElementPresent('_qf_Event_cancel-bottom');
$this->waitForElementPresent("xpath=//div[@id='event_status_id']//div[@id='option11_wrapper']/table/tbody//tr/td[1]/a[text()='$eventTitle']");
}
}
-