public function setUpHeadless() {
return \Civi\Test::headless()
->installMe(__DIR__)
- ->install(['org.civicrm.api4'])
+ ->install(version_compare(CRM_Utils_System::version(), '5.19', '<') ? ['org.civicrm.api4'] : [])
->apply();
}
*/
public function setUpHeadless() {
return \Civi\Test::headless()
- ->install(['org.civicrm.api4', 'org.civicrm.afform', 'org.civicrm.afform-mock'])
+ ->install(version_compare(CRM_Utils_System::version(), '5.19', '<') ? ['org.civicrm.api4'] : [])
+ ->install(['org.civicrm.afform', 'org.civicrm.afform-mock'])
->apply();
}