-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
[Test] [Import] Add test to demonstrate bug that turns out not to exist #14880
Conversation
(Standard links)
|
8acc3e8
to
f7bb6d4
Compare
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
2f6c2d2
to
a0c6165
Compare
FALSE, FALSE, NULL, NULL, FALSE, FALSE, FALSE | ||
); | ||
} | ||
$customFields = CRM_Core_BAO_CustomField::getFields(CRM_Utils_Array::value('contact_type', $values), |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
Changes look fine to me and we should have sufficient test coverage here merging |
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