$count = 1;
try {
- $this->recursion->RFC5545_COMPLIANT = When::IGNORE;
+ if (CRM_Core_Config::singleton()->userFramework == 'UnitTests') {
+ $this->recursion->RFC5545_COMPLIANT = When::IGNORE;
+ }
$this->recursion->generateOccurrences();
}
catch (Exception $e) {