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

[Test] [Import] Add test to demonstrate bug that turns out not to exist #14880

Merged
merged 2 commits into from
Jul 29, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Adds a test

Before

Less tests

After

More tests

Technical Details

I thought there was a bug in import handling in custom data so I wrote a test to try to capture it - tests pass & I'm off to re-check
my data & see if the bug was more of a pebkac error.

Anyway test is good

Comments

@civibot
Copy link

civibot bot commented Jul 25, 2019

(Standard links)

@civibot civibot bot added the master label Jul 25, 2019
@eileenmcnaughton eileenmcnaughton force-pushed the cust_field_label branch 2 times, most recently from 8acc3e8 to f7bb6d4 Compare July 25, 2019 05:16
I thought there was a bug in import handling in custom data so I wrote a test to try to capture it - tests pass & I'm off to re-check
my data & see if the bug was more of a pebkac error.

Anyway test is good
FALSE, FALSE, NULL, NULL, FALSE, FALSE, FALSE
);
}
$customFields = CRM_Core_BAO_CustomField::getFields(CRM_Utils_Array::value('contact_type', $values),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cached in getFields

if ($contactFields == NULL) {
$contactFields = CRM_Contact_DAO_Contact::import();
}
$contactFields = CRM_Contact_DAO_Contact::import();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cached in CRM_Contact_DAO_Contact::import

@seamuslee001
Copy link
Contributor

Changes look fine to me and we should have sufficient test coverage here merging

@seamuslee001 seamuslee001 merged commit f054ee8 into civicrm:master Jul 29, 2019
@seamuslee001 seamuslee001 deleted the cust_field_label branch July 29, 2019 00:34
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