[NFC] Use helper / api to delete contacts in tests
authoreileen <emcnaughton@wikimedia.org>
Tue, 17 Mar 2020 10:04:29 +0000 (23:04 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 17 Mar 2020 10:10:58 +0000 (23:10 +1300)
commitc6a3c749355a41e418ff766640df13df9de25940
treed50a8f9d418db4e09c33cb9897c88d5cdb51dd4f
parent4d9b920b5b8f070471862e92a484a13a9f784e40
[NFC] Use helper / api to delete contacts in tests

CRM_Contact_BAO_Contact::deleteContact has a silly signature - let's use it less & improve it so
it doesn't have the silly idea of supporting restore in the same function as delete, with little shared
code
tests/phpunit/CRM/Contact/BAO/ContactTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php
tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php
tests/phpunit/CRM/Core/DAOTest.php