CRM_Core_DAO::$_nullObject
);
if ($caseType) {
- $this->_formValues['case_type_id'][$caseType] = $caseType;
- $this->_defaults['case_type_id'][$caseType] = $caseType;
- $this->_formValues['case_type_id'] = $caseType;
- $this->_defaults['case_type_id'] = $caseType;
++ $this->_formValues['case_type_id'] = (array) $caseType;
++ $this->_defaults['case_type_id'] = (array) $caseType;
}
$caseFromDate = CRM_Utils_Request::retrieve('pstart', 'Date',
CRM_Core_ClassLoader::singleton()->register();
// Load civicrm database config
- if (isset($_REQUEST['mysql'])) {
- $databaseConfig = $_REQUEST['mysql'];
+ if (isset($_POST['mysql'])) {
+ $databaseConfig = $_POST['mysql'];
}
else {
- $databaseConfig = array(
- "server" => "localhost",
- "username" => "civicrm",
- "password" => "",
- "database" => "civicrm",
- );
+ if ($installType == 'wordpress') {
+ //WP Database Data
+ $databaseConfig = array(
+ "server" => DB_HOST,
+ "username" => DB_USER,
+ "password" => DB_PASSWORD,
+ "database" => DB_NAME,
+ );
+ }
}
if ($installType == 'drupal') {
$this->waitForElementPresent("xpath=//table[@class='display dataTable no-footer']/tbody/tr/td[9]/span/a[contains(text(), 'View')]");
// click through to the membership view screen
-
+ $this->waitForAjaxContent();
$this->click("xpath=//table[@class='display dataTable no-footer']/tbody/tr/td[9]/span/a[contains(text(), 'View')]");
- $this->waitForElementPresent("xpath=//button//span[contains(text(),'Done')]");
+ $this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$joinDate = date('F jS, Y');
$startDate = date('F jS, Y', strtotime("+1 month"));