Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
2563c938
Unverified
Commit
2563c938
authored
4 years ago
by
Seamus Lee
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #18804 from eileenmcnaughton/manual
Declare support for cancelRecurring in manual processor
parents
313f9ac2
b888a015
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Core/Payment/Manual.php
+11
-0
11 additions, 0 deletions
CRM/Core/Payment/Manual.php
tests/phpunit/CRM/Contribute/Page/TabTest.php
+1
-1
1 addition, 1 deletion
tests/phpunit/CRM/Contribute/Page/TabTest.php
with
12 additions
and
1 deletion
CRM/Core/Payment/Manual.php
+
11
−
0
View file @
2563c938
...
...
@@ -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
;
}
}
This diff is collapsed.
Click to expand it.
tests/phpunit/CRM/Contribute/Page/TabTest.php
+
1
−
1
View file @
2563c938
...
...
@@ -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&reset=1&id="
.
$recurID
.
"&cid="
.
$contactID
.
"&context=contribution
\"
class=
\"
action-item crm-hover-button
\"
title='View Recurring Payment' >View</a><a href=
\"
/index.php?q=civicrm/contribute/updaterecur&reset=1&action=update&crid=1&cid=3&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&reset=1&id="
.
$recurID
.
"&cid="
.
$contactID
.
"&context=contribution
\"
class=
\"
action-item crm-hover-button
\"
title='View Recurring Payment' >View</a><a href=
\"
/index.php?q=civicrm/contribute/updaterecur&reset=1&action=update&crid=1&cid=3&context=contribution
\"
class=
\"
action-item crm-hover-button
\"
title='Edit Recurring Payment' >Edit</a><a href=
\"
/index.php?q=civicrm/contribute/unsubscribe&reset=1&crid="
.
$recurID
.
"&cid="
.
$contactID
.
"&context=contribution
\"
class=
\"
action-item crm-hover-button
\"
title='Cancel' >Cancel</a></span>"
,
$templateVariable
[
'activeRecurRows'
][
1
][
'action'
]
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment