<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- // this functionality is broken hence skipping the test
- function skiptestAuthenticatedMultipleEvent() {
+ /**
+ * this functionality is broken hence skipping the test
+ */
+ public function skiptestAuthenticatedMultipleEvent() {
// Log in using webtestLogin() method
$this->webtestLogin();
$this->_checkContributionsandEventRegistration($value[0], $value[1], $events);
}
- // this functionality is broken hence skipping the test
- function skiptestAnonymousMultipleEvent() {
+ /**
+ * this functionality is broken hence skipping the test
+ */
+ public function skiptestAnonymousMultipleEvent() {
// This is the path where our testing install resides.
// The rest of URL is defined in CiviSeleniumTestCase base class, in
// class attributes.
* @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");
* @param bool $priceSet
* @param string $processorName
*/
- function _testAddFees($discount = FALSE, $priceSet = FALSE, $processorName = "PP Pro") {
+ public function _testAddFees($discount = FALSE, $priceSet = FALSE, $processorName = "PP Pro") {
// Go to Fees tab
$this->click("link=Fees");
$this->waitForElementPresent("_qf_Fee_upload-bottom");
* @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 $eventInfoStrings
* @param null $eventFees
*/
- function _AddEventToCart($eventTitle, $eventInfoStrings, $eventFees = NULL) {
+ public function _AddEventToCart($eventTitle, $eventInfoStrings, $eventFees = NULL) {
// verify event input on info page
// start at Manage Events listing
$this->openCiviPage("event/manage", "reset=1");
*
* @return string
*/
- function _testVerifyEventInfo($eventTitle, $eventInfoStrings, $eventFees = NULL) {
+ public function _testVerifyEventInfo($eventTitle, $eventInfoStrings, $eventFees = NULL) {
// verify event input on info page
// start at Manage Events listing
$this->openCiviPage("event/manage", "reset=1");
* @param int $numberRegistrations
* @param bool $anonymous
*/
- function _testOnlineRegistration($registerUrl, $numberRegistrations = 1, $anonymous = TRUE) {
+ public function _testOnlineRegistration($registerUrl, $numberRegistrations = 1, $anonymous = TRUE) {
if ($anonymous) {
$this->webtestLogout();
}
/**
* @return array
*/
- function _testCheckOut() {
+ public function _testCheckOut() {
//View the Cart
$this->click("xpath=//div[@id='messages']/div/div/a[text()='View your cart.']");
* @param string $lastName
* @param $events
*/
- function _checkContributionsandEventRegistration($firstName, $lastName, $events) {
+ public function _checkContributionsandEventRegistration($firstName, $lastName, $events) {
//Type the registered participant's email in autocomplete.
$this->click('sort_name_navigation');
$this->type('css=input#sort_name_navigation', "{$firstName}.{$lastName}@home.com");