Use Processor to determine the phone_type_id & im_provider_id
authoreileen <emcnaughton@wikimedia.org>
Thu, 22 Aug 2019 02:18:13 +0000 (14:18 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 23 Aug 2019 00:55:42 +0000 (12:55 +1200)
commitcd41fa5b5599b329bd6f54acf0a79dda85477804
tree20d9d1fff95c33f3232f5f561c9c25192898523f
parent7b1b7f86877cec34c56acf52edc603502aaa9886
Use Processor to  determine the phone_type_id & im_provider_id

What we are doing here is actually very simple - despite the code being kinda insane - we are just getting
the  fields from the database for  each column in the mapping.

The fields are all loaded into the processor already & those functions are tested. This switches to  using them
and to passing around less variables...

Follow ons will do the same for other fields (website_type_id, location_type_id but I will add more tests as I do that
CRM/Contact/Import/Form/MapField.php
CRM/Import/ImportProcessor.php
tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php
tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php