'html_type' => 'select',
'html_attributes' => ['class' => 'crm-select2'],
'pseudoconstant' => ['callback' => '_flexmailer_traditional_options'],
- 'default' => 'flexmailer',
+ 'default' => 'auto',
'add' => '5.13',
'title' => E::ts('Traditional Mailing Handler'),
'is_domain' => 1,
}
switch (\Civi::settings()->get('flexmailer_traditional')) {
- case 'auto':
- // Transitional support for old hidden setting "experimentalFlexMailerEngine" (bool)
- // TODO: Remove this. Maybe after Q4 2019.
- // TODO: Change this to default to flexmailer
- return (bool) \Civi::settings()->get('experimentalFlexMailerEngine');
-
case 'bao':
return FALSE;
+ case 'auto':
case 'flexmailer':
return TRUE;
public function setUp() {
parent::setUp();
- Civi::settings()->add(['experimentalFlexMailerEngine' => FALSE]);
+ // If we happen to execute with flexmailer active, use BAO mode.
+ // There is a parallel FlexMailerSystemTest which runs in flexmailer mode.
+ Civi::settings()->add(['flexmailer_traditional' => 'bao']);
$hooks = \CRM_Utils_Hook::singleton();
$hooks->setHook('civicrm_alterMailParams',