'subject' => 'this case should fail',
'scheduled_date_time' => date('Ymd'),
);
- $result = $this->callAPIFailure('activity', 'create', $params);
+ $this->callAPIFailure('activity', 'create', $params);
}
/**
'scheduled_date_time' => date('Ymd'),
);
- $result = $this->callAPIFailure('activity', 'create', $params);
+ $this->callAPIFailure('activity', 'create', $params);
}
/**
'activity_type_id' => 'Invalid Test activity type',
);
- $result = $this->callAPIFailure('activity', 'create', $params);
+ $this->callAPIFailure('activity', 'create', $params);
}
/**
'activity_name' => 'Test activity type',
);
- $result = $this->callAPIFailure('activity', 'create', $params,
+ $this->callAPIFailure('activity', 'create', $params,
"'Invalid' is not a valid option for field status_id");
}
* Test civicrm_activity_get() with no params
*/
public function testActivityGetEmpty() {
- $result = $this->callAPISuccess('activity', 'get', array());
+ $this->callAPISuccess('activity', 'get', array());
}
/**
$subject = 'test activity ' . __FUNCTION__ . mt_rand();
$params = $this->_params;
$params['subject'] = $subject;
- $activity = $this->callAPISuccess('Activity', 'Create', $params);
- $activityget = $this->callAPISuccess('activity', 'getsingle', array(
+ $this->callAPISuccess('Activity', 'Create', $params);
+ $activityGet = $this->callAPISuccess('activity', 'getsingle', array(
'subject' => $subject,
));
- $this->assertEquals($activityget['subject'], $subject);
+ $this->assertEquals($activityGet['subject'], $subject);
}
/**