4 => 'Donation',
2 => '50.00',
6 => 'Completed',
- 1 => "{$firstName} {$lastName}"
+ 1 => "{$firstName} {$lastName}",
);
foreach ($expected as $value => $label) {
$this->verifyText("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[2]/td[$value]", preg_quote($label));
$this->_verifyAmounts($checkScenario5);
}
- //common function for doing offline contribution
/**
+ * common function for doing offline contribution
* @param array $params
* @param string $firstName
* @param string $lastName
$this->assertTrue($this->isTextPresent("The contribution record has been processed."), "Status message didn't show up after saving!");
}
- //common function for verifing total_amount, and non_deductible_amount
/**
+ * common function for verifing total_amount, and non_deductible_amount
* @param $verifyData
*/
public function _verifyAmounts($verifyData) {
"xpath=//form[@id='Basic']/div[3]/div[1]/div[2]/table/tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//form[@id='Basic']/div[3]/div[1]/div[2]/table/tbody/tr[1]/td[11]/span/a[text()='View']",
- 'crm-contact-actions-link', FALSE);
+ 'crm-contact-actions-link', FALSE);
}
public function testOnlineContributionWithZeroAmount() {
'Financial Type' => 'Donation',
'Total Amount' => '0.00',
'Contribution Status' => 'Completed',
- 'Paid By' => 'Credit Card'
+ 'Paid By' => 'Credit Card',
);
$this->webtestVerifyTabularData($expected);
}