Cleanup relationships
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 13 Apr 2023 19:02:26 +0000 (07:02 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 13 Apr 2023 20:38:28 +0000 (08:38 +1200)
tests/phpunit/CRM/Dedupe/MergerTest.php
tests/phpunit/api/v3/JobTest.php

index 18e80a8262326b57599103b5af333b91fe39fb19..e4466f3e9cd62510116293efb2b2b474abe24d87 100644 (file)
@@ -35,6 +35,7 @@ class CRM_Dedupe_MergerTest extends CiviUnitTestCase {
       'civicrm_group_contact',
       'civicrm_group',
       'civicrm_prevnext_cache',
+      'civicrm_relationship',
     ]);
     if ($this->hookClass) {
       // Do this here to flush the entityTables cache on teardown.
index f0c6f3dc0fef1f84a8a7f594758b1968347a15e4..f3a033f3997733ad490d6d6b682ad7ed175ec06c 100644 (file)
@@ -59,8 +59,7 @@ class api_v3_JobTest extends CiviUnitTestCase {
   public function tearDown(): void {
     $this->resetHooks();
     $this->quickCleanUpFinancialEntities();
-    $this->quickCleanup(['civicrm_contact', 'civicrm_address', 'civicrm_email', 'civicrm_website', 'civicrm_phone', 'civicrm_job', 'civicrm_action_log', 'civicrm_action_schedule', 'civicrm_group', 'civicrm_group_contact'], TRUE);
-    $this->quickCleanup(['civicrm_contact', 'civicrm_address', 'civicrm_email', 'civicrm_website', 'civicrm_phone'], TRUE);
+    $this->quickCleanup(['civicrm_contact', 'civicrm_address', 'civicrm_email', 'civicrm_relationship', 'civicrm_website', 'civicrm_phone', 'civicrm_job', 'civicrm_action_log', 'civicrm_action_schedule', 'civicrm_group', 'civicrm_group_contact'], TRUE);
     foreach ($this->originalValues as $entity => $entities) {
       foreach ($entities as $values) {
         $this->callAPISuccess($entity, 'create', $values);