$this->assertTrue(is_numeric($actionScheduleDao->id));
$activity = $this->createTestObject('CRM_Activity_DAO_Activity', $this->fixtures['phonecall']);
- // $activity = $this->createTestObject('CRM_Activity_DAO_Activity', $this->fixtures['phonecall']);
$this->assertTrue(is_numeric($activity->id));
$contact = civicrm_api('contact', 'create', $this->fixtures['contact']);
- $activity->source_contact_id = $contact['id'];
$activity->save();
+ $source['contact_id'] = $contact['id'];
+ $source['activity_id'] = $activity->id;
+ $source['record_type_id'] = 2;
+ $activityContact = $this->createTestObject('CRM_Activity_DAO_ActivityContact', $source);
+ $activityContact->save();
+
$this->assertCronRuns(array(
array( // Before the 24-hour mark, no email
'time' => '2012-06-14 04:00:00',
$activity = $this->createTestObject('CRM_Activity_DAO_Activity', $this->fixtures['phonecall']);
$this->assertTrue(is_numeric($activity->id));
$contact = civicrm_api('contact', 'create', $this->fixtures['contact']);
- $activity->source_contact_id = $contact['id'];
$activity->save();
+ $source['contact_id'] = $contact['id'];
+ $source['activity_id'] = $activity->id;
+ $source['record_type_id'] =2;
+ $activityContact = $this->createTestObject('CRM_Activity_DAO_ActivityContact', $source);
+ $activityContact->save();
+
$this->assertCronRuns(array(
array( // Before the 24-hour mark, no email
'time' => '012-06-14 04:00:00',