X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FEvent%2FMultipleEventRegistrationbyCartTest.php;h=fe5c4c97d1651074be31c0f2266a0ab206e80256;hb=dd9304246aded111d5bde02d2321198bce20eaf0;hp=962f18e38ca9eaed55c8a5773dc4476f2b8ffc59;hpb=100fef9d739cd6f5377269d230510c328e484c8c;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Event/MultipleEventRegistrationbyCartTest.php b/tests/phpunit/WebTest/Event/MultipleEventRegistrationbyCartTest.php index 962f18e38c..fe5c4c97d1 100755 --- a/tests/phpunit/WebTest/Event/MultipleEventRegistrationbyCartTest.php +++ b/tests/phpunit/WebTest/Event/MultipleEventRegistrationbyCartTest.php @@ -1,7 +1,7 @@ webtestLogin(); @@ -128,8 +130,10 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest $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. @@ -236,7 +240,7 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest * @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"); @@ -264,7 +268,7 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest /** * @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"); @@ -287,7 +291,7 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest * @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"); @@ -329,7 +333,7 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest * @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"); @@ -358,7 +362,7 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest * @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"); @@ -375,7 +379,7 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest * * @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"); @@ -398,7 +402,7 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest * @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(); } @@ -412,7 +416,7 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest /** * @return array */ - function _testCheckOut() { + public function _testCheckOut() { //View the Cart $this->click("xpath=//div[@id='messages']/div/div/a[text()='View your cart.']"); @@ -456,7 +460,7 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest * @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");