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); } /**