Skip to content
Snippets Groups Projects
Unverified Commit 2563c938 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #18804 from eileenmcnaughton/manual

Declare support for cancelRecurring in manual processor
parents 313f9ac2 b888a015
Branches
Tags
No related merge requests found
......@@ -270,7 +270,18 @@ class CRM_Core_Payment_Manual extends CRM_Core_Payment {
}
return ts('To complete your contribution, click the <strong>Continue</strong> button below.');
default:
return parent::getText($context, $params);
}
}
/**
* Does this processor support cancelling recurring contributions through code.
*
* @return bool
*/
protected function supportsCancelRecurring() {
return TRUE;
}
}
......@@ -51,7 +51,7 @@ class CRM_Contribute_Page_TabTest extends CiviUnitTestCase {
$templateVariable = CRM_Core_Smarty::singleton()->get_template_vars();
$this->assertEquals('Mr. Anthony Anderson II', $templateVariable['displayName']);
$this->assertEquals("<span><a href=\"/index.php?q=civicrm/contact/view/contributionrecur&amp;reset=1&amp;id=" . $recurID . "&amp;cid=" . $contactID . "&amp;context=contribution\" class=\"action-item crm-hover-button\" title='View Recurring Payment' >View</a><a href=\"/index.php?q=civicrm/contribute/updaterecur&amp;reset=1&amp;action=update&amp;crid=1&amp;cid=3&amp;context=contribution\" class=\"action-item crm-hover-button\" title='Edit Recurring Payment' >Edit</a><a href=\"#\" class=\"action-item crm-hover-button crm-enable-disable\" title='Cancel' >Cancel</a></span>",
$this->assertEquals("<span><a href=\"/index.php?q=civicrm/contact/view/contributionrecur&amp;reset=1&amp;id=" . $recurID . "&amp;cid=" . $contactID . "&amp;context=contribution\" class=\"action-item crm-hover-button\" title='View Recurring Payment' >View</a><a href=\"/index.php?q=civicrm/contribute/updaterecur&amp;reset=1&amp;action=update&amp;crid=1&amp;cid=3&amp;context=contribution\" class=\"action-item crm-hover-button\" title='Edit Recurring Payment' >Edit</a><a href=\"/index.php?q=civicrm/contribute/unsubscribe&amp;reset=1&amp;crid=" . $recurID . "&amp;cid=" . $contactID . "&amp;context=contribution\" class=\"action-item crm-hover-button\" title='Cancel' >Cancel</a></span>",
$templateVariable['activeRecurRows'][1]['action']
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment