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 input parameters on extracted function #14050

Merged
merged 2 commits into from
Apr 20, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Code cleanup & add tests - part of bigger fix #14043

Before

$fields param required to be passed in to extracted function

After

$fields param is a class property accessed by a function. Test added

Technical Details

I had some concern about the weird handling custom fields so I added a test & moved the handling to a less mystical place

Comments

@civibot
Copy link

civibot bot commented Apr 15, 2019

(Standard links)

As part of a tidy up of this function I am removing  as an input parameter & getting it from
a function. Unit testing added in testAddressWithCustomData to ensure custom data is still imported.

Additional related tests are in that function. This is preliminary to fixing
primary handling & related test for phone & email import - and to tidying up general mess in this function
@colemanw
Copy link
Member

Code looks good & tests pass

@colemanw colemanw merged commit e0dde29 into civicrm:master Apr 20, 2019
@eileenmcnaughton eileenmcnaughton deleted the import branch April 20, 2019 01:00
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