From a4b7c4ea5ff4c85109da0914147cfa483fe499fc Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 8 May 2021 00:08:34 +1200 Subject: [PATCH] Improve cleanup on contact test We are not deleting all financial entities, when created, meaning this test can cause other tests to fail depending on the combo --- tests/phpunit/api/v3/ContactTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/phpunit/api/v3/ContactTest.php b/tests/phpunit/api/v3/ContactTest.php index 605501a2b8..87f76dbfed 100644 --- a/tests/phpunit/api/v3/ContactTest.php +++ b/tests/phpunit/api/v3/ContactTest.php @@ -85,22 +85,19 @@ class api_v3_ContactTest extends CiviUnitTestCase { // truncate a few tables $tablesToTruncate = [ 'civicrm_email', - 'civicrm_contribution', - 'civicrm_line_item', 'civicrm_website', 'civicrm_relationship', 'civicrm_uf_match', 'civicrm_phone', 'civicrm_address', 'civicrm_acl_contact_cache', - 'civicrm_activity_contact', - 'civicrm_activity', 'civicrm_group', 'civicrm_group_contact', 'civicrm_group_contact_cache', 'civicrm_saved_search', 'civicrm_prevnext_cache', ]; + $this->quickCleanUpFinancialEntities(); $this->quickCleanup($tablesToTruncate, TRUE); parent::tearDown(); -- 2.25.1