<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
$streetAddress = "100 Main Street";
$this->_testAddLocation($streetAddress);
- $this->_testAddFees(FALSE, FALSE, $paymentProcessorId);
+ $this->_testAddFees(FALSE, FALSE, $processorName);
$this->openCiviPage('event/manage', 'reset=1');
$this->type('title', $eventTitle);
$this->click('_qf_SearchEvent_refresh');
$this->waitForElementPresent('search-status');
$this->assertElementContainsText('search-status', '2 Contact');
- $this->select("task", "label=Add Contacts to Group");
+ $this->select("task", "label=Group - add contacts");
$this->waitForPageToLoad($this->getTimeoutMsec());
$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");
* @param bool $priceSet
* @param int $processorId
*/
- public function _testAddFees($discount = FALSE, $priceSet = FALSE, $processorId) {
+ public function _testAddFees($discount = FALSE, $priceSet = FALSE, $processorName) {
// Go to Fees tab
$this->click("link=Fees");
$this->waitForElementPresent("_qf_Fee_upload-bottom");
$this->click("CIVICRM_QFID_1_is_monetary");
- $this->check("payment_processor[{$processorId}]");
+ $this->select2('payment_processor', $processorName, TRUE);
$this->select("financial_type_id", "value=4");
if ($priceSet) {
// get one - TBD
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->assertTrue(TRUE, 'greater than or equal to "{$Pdate}" AND less than or equal to "{$Ndate}"');
$value = "$lastNameSoft, $firstNameSoft";
+ $this->waitForElementPresent("xpath= id('rowid{$cid}')/td[3]/a");
$this->verifyText("xpath= id('rowid{$cid}')/td[3]/a", preg_quote($value));
}