[REF] [Import] Extract getContactType
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 22 Apr 2022 00:11:17 +0000 (12:11 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 22 Apr 2022 00:42:10 +0000 (12:42 +1200)
commit6e78138c3daf041deea955954be528a7bc5f30ac
treed6f056c6bf3793eb8ce586f331fdfba2e9081c00
parent70115ad4db093fb4b01a8f1ecc8ccf541a869d63
[REF] [Import] Extract getContactType

Note that the function on the MetaDataTrait is moved to the
Parser_Class - 3 forms use the trait - a unittest class,
the Parser_Class and MapField.

MapField was not calling the old function but the newly added one
clashes - and highlights that the contents of the function
should differ for the 2 scenarios - hence moving
off the Trait and onto the 3 classes that use it
CRM/Contact/Import/Form/MapField.php
CRM/Contact/Import/MetadataTrait.php
CRM/Contact/Import/Parser/Contact.php
CRM/Import/Forms.php
tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php