From e689a01a93e945f806dd297ed21a2714f59971c0 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 14 Oct 2021 19:09:51 +1300 Subject: [PATCH] Stop flushing caches on enable civiCampaign We should be able to get the 'right' cache clearing via the core function. --- tests/phpunit/CiviTest/CiviUnitTestCase.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index e717eec4f3bd..dc3cbf18486f 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -1778,18 +1778,9 @@ public function noteCreate($cId) { /** * Enable CiviCampaign Component. - * - * @param bool $reloadConfig - * Force relaod config or not */ - public function enableCiviCampaign($reloadConfig = TRUE) { + public function enableCiviCampaign(): void { CRM_Core_BAO_ConfigSetting::enableComponent('CiviCampaign'); - if ($reloadConfig) { - // force reload of config object - $config = CRM_Core_Config::singleton(TRUE, TRUE); - } - //flush cache by calling with reset - $activityTypes = CRM_Core_PseudoConstant::activityType(TRUE, TRUE, TRUE, 'name', TRUE); } /**