*/
public function testCallUpdateGreetingSuccess() {
$result = $this->callAPISuccess($this->_entity, 'update_greeting', array(
- 'gt' => 'postal_greeting',
- 'ct' => 'Individual',
- ));
+ 'gt' => 'postal_greeting',
+ 'ct' => 'Individual',
+ ));
}
public function testCallUpdateGreetingCommaSeparatedParamsSuccess() {
'limit_to' => FALSE,
));
$this->callAPISuccess('group_contact', 'create', array(
- 'contact_id' => $contactID,
- 'status' => 'Added',
- 'group_id' => $groupID,
- ));
+ 'contact_id' => $contactID,
+ 'status' => 'Added',
+ 'group_id' => $groupID,
+ ));
}
$result = $this->callAPISuccess('job', 'send_reminder', array());
$successfulCronCount = CRM_Core_DAO::singleValueQuery("SELECT count(*) FROM civicrm_action_log");
}
if ($i < 3) {
$this->callAPISuccess('group_contact', 'create', array(
- 'contact_id' => $contactID,
- 'status' => 'Added',
- 'group_id' => $groupID,
- ));
+ 'contact_id' => $contactID,
+ 'status' => 'Added',
+ 'group_id' => $groupID,
+ ));
}
if ($i > 1) {
$this->callAPISuccess('membership', 'create', array(
$orgID = $this->organizationCreate();
CRM_Utils_Hook_UnitTests::singleton()->setHook('civicrm_pre', array($this, 'hookPreRelationship'));
$relationshipTypeID = $this->callAPISuccess('relationship_type', 'getvalue', array(
- 'return' => 'id',
- 'name_a_b' => 'Employee of',
- ));
+ 'return' => 'id',
+ 'name_a_b' => 'Employee of',
+ ));
$result = $this->callAPISuccess('relationship', 'create', array(
'relationship_type_id' => $relationshipTypeID,
'contact_id_a' => $individualID,