Skip to content
Snippets Groups Projects
Commit 141d3170 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

fixes for WebTest_Contribute_AddBatchesTest::testBatchAddMembership

parent 09f61009
No related branches found
No related tags found
No related merge requests found
......@@ -523,7 +523,7 @@ class CRM_Member_Page_Tab extends CRM_Core_Page {
* return null
* @access public
*/
function associatedContribution($contactId = NULL, $membershipId = NULL) {
public static function associatedContribution($contactId = NULL, $membershipId = NULL) {
if (!$contactId) {
$contactId = $this->_contactId;
}
......
......@@ -88,7 +88,7 @@ class WebTest_Contribute_AddBatchesTest extends CiviSeleniumTestCase {
$data[$i] = array(
'first_name' => 'Ma' . substr(sha1(rand()), 0, 7),
'last_name' => 'An' . substr(sha1(rand()), 0, 7),
'membership_type' => 'Default Organization',
'membership_type' => 'General',
'amount' => 100,
'financial_type' => 'Member Dues',
);
......@@ -118,7 +118,7 @@ class WebTest_Contribute_AddBatchesTest extends CiviSeleniumTestCase {
}
elseif ($type == "Membership") {
$this->select("field[{$row}][membership_type][0]", $data['membership_type']);
$this->select("field[{$row}][membership_type][1]", $data['membership_type']);
$this->webtestFillDate("field_{$row}_join_date", "now");
$this->webtestFillDate("field_{$row}_membership_start_date", "now");
$this->webtestFillDate("field_{$row}_membership_end_date", "+1 month");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment