*/
require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Event_EventWaitListTest
+ */
class WebTest_Event_EventWaitListTest extends CiviSeleniumTestCase {
protected function setUp() {
parent::setUp();
}
- function testEventWaitList() {
+ public function testEventWaitList() {
// Log in using webtestLogin() method
$this->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");
$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");
$this->assertChecked("is_multiple_registrations");
}
+ $this->click('intro_text-plain');
$this->fillRichTextField("intro_text", $registerIntro);
// enable confirmation email
$this->assertStringsPresent("This event is currently full.");
}
- function _testVerifyEventInfo($eventTitle, $eventInfoStrings) {
+ /**
+ * @param $eventTitle
+ * @param $eventInfoStrings
+ */
+ public function _testVerifyEventInfo($eventTitle, $eventInfoStrings) {
// verify event input on info page
// start at Manage Events listing
$this->openCiviPage("event/manage", "reset=1");
$this->assertStringsPresent($eventInfoStrings);
}
- function _testVerifyRegisterPage($registerStrings) {
+ /**
+ * @param $registerStrings
+ *
+ * @return string
+ */
+ 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");
return $this->getLocation();
}
- function _testOnlineRegistration($registerUrl, $numberRegistrations = 1, $anonymous = TRUE) {
+ /**
+ * @param $registerUrl
+ * @param int $numberRegistrations
+ * @param bool $anonymous
+ */
+ public function _testOnlineRegistration($registerUrl, $numberRegistrations = 1, $anonymous = TRUE) {
if ($anonymous) {
$this->webtestLogout();
}
}
}
}
-