[Test] Improve cleanup of domain contacts
authorYour Name <you@example.com>
Sat, 8 May 2021 21:20:29 +0000 (09:20 +1200)
committerYour Name <you@example.com>
Sun, 9 May 2021 21:41:02 +0000 (09:41 +1200)
commit3cf02d63c1195101fa10f7ddc12fea4452d979cd
tree8a51362d3d4b22ff1a077ca37ad4b0ddce95cd7c
parent35093fbff08842016c1ef01042e225b9cb5ffec2
[Test] Improve cleanup of domain contacts

This fixes a situation where the domain contact may not have an email (or exist) if this
test is run in combination with certain others. The last test in the suite relies on the
domain contact having an email. This test was not following the practice
of having a tearDown but the tearDown was also flawed in recreating the domain
contacts but not their emails
tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/ContactTest.php
tests/phpunit/api/v3/ContributionTest.php
tests/phpunit/api/v3/DomainTest.php
tests/phpunit/api/v3/EntityBatchTest.php