'Paid By' => 'Check',
'Check Number' => '1041',
'Contribution Status' => 'Completed',
- 'Soft Credit To' => "$firstNameSoft $lastNameSoft",
);
$this->webtestVerifyTabularData($expected);
);
}
+ // verify if soft credit was created successfully
+ $softCreditValues = array(
+ 'Soft Credit To' => "{$firstNameSoft} {$lastNameSoft}",
+ 'Amount' => '65.00',
+ );
+
+ foreach ($softCreditValues as $value) {
+ $this->verifyText("css=table.crm-soft-credit-listing", preg_quote($value));
+ }
+
// Check for Soft contact created
$this->click("css=input#sort_name_navigation");
$this->type("css=input#sort_name_navigation", "$lastNameSoft, $firstNameSoft");
'Contribution Status' => $fields['values'][$fields['id']]['contribution_status'],
'Paid By' => $fields['values'][$fields['id']]['contribution_payment_instrument'],
'Check Number' => $fields['values'][$fields['id']]['contribution_check_number'],
- 'Soft Credit To' => $softCreditContact->display_name,
);
+
$this->webtestVerifyTabularData($expected);
+
+ // verify if soft credit
+ $softCreditValues = array(
+ 'Soft Credit To' => $softCreditContact->display_name,
+ 'Amount' => '65.00',
+ );
+
+ foreach ($softCreditValues as $value) {
+ $this->verifyText("css=table.crm-soft-credit-listing", preg_quote($value));
+ }
}
}