Test tearDown fixes
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 20 Sep 2021 01:45:42 +0000 (13:45 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 20 Sep 2021 02:02:09 +0000 (14:02 +1200)
commitd706c14907840de5a3a5ebe98cea1c361fce211e
treed98716c7922669fb08b30409cb0f6057bd62a435
parent4e787efd1e594b853656d55f1781e3afc683182c
Test tearDown fixes

Fixes places where parent:tearDown not called and civicrm_file &
civicrm_entity_file not truncated

Also note - increasing use of fail() rather than allowing
exceptions to bubble up in test functions in order
to not let tearDown be such a distraction & require annotation
tests/phpunit/CRM/Activity/BAO/ActivityTest.php
tests/phpunit/CRM/Batch/BAO/BatchTest.php
tests/phpunit/CRM/Case/BAO/CaseTest.php
tests/phpunit/CRM/Contribute/Form/Contribution/MainTest.php
tests/phpunit/CRM/Contribute/Form/Contribution/ThankYouTest.php
tests/phpunit/CRM/Contribute/Form/Task/InvoiceTest.php
tests/phpunit/CRM/Core/BAO/CustomValueTableTest.php
tests/phpunit/CRM/Utils/Mail/EmailProcessorInboundTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/ContactTest.php