From 078a83c29d51fc9f34bf146a5abf6a5e9cc9fffc Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 16 Aug 2022 23:51:52 +1200 Subject: [PATCH] Update RuleGroupTest to flush sanely --- tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php b/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php index 2438468206..f8034db88d 100644 --- a/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php +++ b/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php @@ -257,9 +257,6 @@ class CRM_Dedupe_BAO_RuleGroupTest extends CiviUnitTestCase { */ public function testHookDupeQueryMatch(): void { $this->hookClass->setHook('civicrm_dupeQuery', [$this, 'hook_civicrm_dupeQuery']); - - \CRM_Core_DAO_AllCoreTables::flush(); - \CRM_Core_DAO_AllCoreTables::registerEntityType('TestEntity', 'CRM_Dedupe_DAO_TestEntity', 'civicrm_dedupe_test_table'); $this->apiKernel = \Civi::service('civi_api_kernel'); $this->adhocProvider = new \Civi\API\Provider\AdhocProvider(3, 'TestEntity'); @@ -380,7 +377,6 @@ class CRM_Dedupe_BAO_RuleGroupTest extends CiviUnitTestCase { $this->assertCount(0, $foundDupes); CRM_Core_DAO::executeQuery('DROP TABLE civicrm_dedupe_test_table'); - \CRM_Core_DAO_AllCoreTables::flush(); } /** -- 2.25.1