Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ref] Cleanup on SelectValues::contributeTokens #21465

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[Ref] Cleanup on SelectValues::contributeTokens

This has 100% test cover in the ByTypeTest::testTokenRendering test

Before

6 lines of code

After

2

Technical Details

Now that the Contribute token processor class is 'listening' we can do this simplification

The change means we no longer need the recently-added function
to be public & hence it is switched to protected.

Note this is the same as the equivalent contactTokens function

Comments

This has 100% test cover in the ByTypeTest::testTokenRendering test

The change means we no longer need the recently-added function
to be public & hence it is switched to protected.

Note this is the same as the equivalent contactTokens function
@civibot
Copy link

civibot bot commented Sep 14, 2021

(Standard links)

@civibot civibot bot added the master label Sep 14, 2021
@colemanw
Copy link
Member

Only 100% cover? Couldn't we get 110% like my gym coach was always asking for?

@colemanw colemanw merged commit dd77834 into civicrm:master Sep 14, 2021
@colemanw colemanw deleted the cont_tok branch September 14, 2021 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants