parent::setUp();
}
- function testOnlineContributionAdd() {
+ public function testOnlineContributionAdd() {
$this->webtestLogin();
// Use default payment processor
$this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom",FALSE);
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);
//View Contribution Record and verify data
$expected = array(
// Is contact present?
$this->assertTrue($this->isTextPresent("$honorDisplayName"), "Honoree contact not found.");
- }
+ }
- function testOnlineContributionWithZeroAmount () {
+ public function testOnlineContributionWithZeroAmount () {
$this->webtestLogin();
// Use default payment processor
* @param int $pageId
* @param bool $priceSet
*/
- function _doContributionAndVerifyData($pageId, $priceSet = FALSE) {
+ public function _doContributionAndVerifyData($pageId, $priceSet = FALSE) {
//logout
$this->webtestLogout();
$amountLabel = 'Total Amount';
$this->clickLink("_qf_Confirm_next-bottom", NULL);
-
//login to check contribution
// Log in using webtestLogin() method
$this->webtestLogin();
- //Find Contribution
+ //Find Contribution
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
- $this->type("sort_name", "$firstName $lastName");
+ $this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", FALSE);
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);
'From' => "{$firstName} {$lastName}",
'Financial Type' => 'Donation',
$amountLabel => $amountValue,
- 'Contribution Status' => 'Completed'
+ 'Contribution Status' => 'Completed',
);
$this->webtestVerifyTabularData($expected);
}
}
-