// the back-end's canonical set of parameters. But if a processor
// does this, it needs to invoke this hook after it has done translation,
// but before it actually starts talking to its proprietary back-end.
-
+ if (!empty($params['is_recur'])) {
+ $throwAnENoticeIfNotSetAsTheseAreRequired = $params['frequency_interval'] . $params['frequency_unit'];
+ }
// no translation in Dummy processor
$cookedParams = $params;
CRM_Utils_Hook::alterPaymentProcessorParams($this,
$form->testSubmit($params);
$membership = $this->callAPISuccessGetSingle('Membership', array('contact_id' => $this->_individualId));
- $this->callAPISuccessGetCount('ContributionRecur', array('contact_id' => $this->_individualId), 1);
+ $contributionRecur = $this->callAPISuccessGetSingle('ContributionRecur', array('contact_id' => $this->_individualId));
+ $this->assertEquals($contributionRecur['id'], $membership['contribution_recur_id']);
$contribution = $this->callAPISuccess('Contribution', 'getsingle', array(
'contact_id' => $this->_individualId,
), 1);
}
+
/**
* Test the submit function of the membership form.
*/