Skip to content

Commit

Permalink
Merge pull request #21833 from eileenmcnaughton/test_cache
Browse files Browse the repository at this point in the history
Stop flushing caches on enable civiCampaign
  • Loading branch information
colemanw authored Oct 15, 2021
2 parents 307d51c + e689a01 commit bcd8571
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/phpunit/CiviTest/CiviUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit bcd8571

Please sign in to comment.