Extend import option handling to prefix, suffix, language, communication_style
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 21 May 2022 04:08:52 +0000 (16:08 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 23 May 2022 21:12:35 +0000 (09:12 +1200)
commitc0010ab58a6fd35acbe9aa5c4b9d61079537596b
tree33a0cb7fe371dd87e27478d3c8fb3cb6ea4a53ef
parenta458a7f68227ff53a88c8cc98d1e2239fd68d278
Extend import option handling to prefix, suffix, language, communication_style

This extends a pattern thoroughly tested for gender to
other single-option-value fields & removes duplicate handling.

Test cover in

`CRM_Contact_Import_Parser_ContactTest::testPrefixLabel`
`CRM_Contact_Import_Parser_ContactTest::testPreferredLanguageImport`
CRM/Contact/BAO/Contact.php
CRM/Contact/Import/Parser/Contact.php
tests/phpunit/CRM/Contact/BAO/ContactTest.php