X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FEvent%2FEventWaitListTest.php;h=73d5492848f1f596bd0cf5beb0a6c0ed2a1b019c;hb=81621fee4d9c2e8c6f5272a1c6b38a86186fe185;hp=293b700c603de17aeab705343a987e53a04b464b;hpb=fdfd59ccd77f9b06547204a505b67e35bf6596d7;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Event/EventWaitListTest.php b/tests/phpunit/WebTest/Event/EventWaitListTest.php index 293b700c60..73d5492848 100644 --- a/tests/phpunit/WebTest/Event/EventWaitListTest.php +++ b/tests/phpunit/WebTest/Event/EventWaitListTest.php @@ -1,7 +1,7 @@ webtestLogin(); - // We need a payment processor - $processorName = "Webtest Dummy" . substr(sha1(rand()), 0, 7); + // Use default payment processor + $processorName = 'Test Processor'; $this->webtestAddPaymentProcessor($processorName); $this->openCiviPage("event/add", "reset=1&action=add"); @@ -79,7 +79,7 @@ class WebTest_Event_EventWaitListTest extends CiviSeleniumTestCase { $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_country_id', 'UNITED STATES'); $this->select("address_1_state_province_id", "value=1004"); $this->type("email_1_email", "info@civicrm.org"); @@ -159,7 +159,7 @@ class WebTest_Event_EventWaitListTest extends CiviSeleniumTestCase { * @param $eventTitle * @param $eventInfoStrings */ - function _testVerifyEventInfo($eventTitle, $eventInfoStrings) { + public function _testVerifyEventInfo($eventTitle, $eventInfoStrings) { // verify event input on info page // start at Manage Events listing $this->openCiviPage("event/manage", "reset=1"); @@ -174,7 +174,7 @@ class WebTest_Event_EventWaitListTest extends CiviSeleniumTestCase { * * @return string */ - function _testVerifyRegisterPage($registerStrings) { + public function _testVerifyRegisterPage($registerStrings) { // Go to Register page and check for intro text and fee levels $this->click("link=Register Now"); $this->waitForElementPresent("_qf_Register_upload-bottom"); @@ -187,7 +187,7 @@ class WebTest_Event_EventWaitListTest extends CiviSeleniumTestCase { * @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(); } @@ -240,5 +240,5 @@ class WebTest_Event_EventWaitListTest extends CiviSeleniumTestCase { $this->webtestLogin(); } } -} +}