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

Update tests to simulate labels that are not the same as names #15399

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Oct 5, 2019

Overview

We have an issue where it is too easy to check name rather than label in code & that is missed for English language but breaks stuff in translated CRM. This renames some labels (statuses of Pending & Refunded) within the test suite. The hope is to extend this to more labels later.

Before

No test cover for label !== name

After

Some coverr

Technical Details

I rename them back in tearDown as it seems good practice to try to not mess with the DB state - even though I keep resetting them

Comments

@civibot
Copy link

civibot bot commented Oct 5, 2019

(Standard links)

@civibot civibot bot added the master label Oct 5, 2019
@eileenmcnaughton eileenmcnaughton force-pushed the pending branch 3 times, most recently from 2696faa to 0a68acf Compare October 7, 2019 04:43
@eileenmcnaughton eileenmcnaughton changed the title Go random Update tests to simulate labels that are not the same as names Oct 7, 2019
@eileenmcnaughton eileenmcnaughton force-pushed the pending branch 3 times, most recently from 0a68acf to cd83486 Compare October 7, 2019 23:58
…re different in internationalised extensions

Adjust tests for renamed labels
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Oct 13, 2019
Fixes a bug caused by
civicrm@5b9d3ce

And picked up in test with civicrm#15399
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Oct 13, 2019
Fixes a bug caused by
civicrm@5b9d3ce

And picked up in test with civicrm#15399
@eileenmcnaughton
Copy link
Contributor Author

test this please

@seamuslee001
Copy link
Contributor

Looks good makes sense to me and will help with us finding problems in the future Merging

@seamuslee001 seamuslee001 merged commit 75452c6 into civicrm:master Oct 14, 2019
@seamuslee001 seamuslee001 deleted the pending branch October 14, 2019 02:35
magnolia61 pushed a commit to magnolia61/civicrm-core that referenced this pull request Oct 16, 2019
Fixes a bug caused by
civicrm@5b9d3ce

And picked up in test with civicrm#15399
magnolia61 pushed a commit to magnolia61/civicrm-core that referenced this pull request Oct 16, 2019
Fixes a bug caused by
civicrm@5b9d3ce

And picked up in test with civicrm#15399
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