From: Eileen McNaughton Date: Thu, 14 Oct 2021 06:09:51 +0000 (+1300) Subject: Stop flushing caches on enable civiCampaign X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e689a01a93e945f806dd297ed21a2714f59971c0;p=civicrm-core.git Stop flushing caches on enable civiCampaign We should be able to get the 'right' cache clearing via the core function. --- diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index e717eec4f3..dc3cbf1848 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -1778,18 +1778,9 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase { /** * 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); } /**