//take the common contact params
$params = $this->contactParams();
$params['note'] = 'test note';
- $params['create_employer'] = 'Yahoo';
+ $params['create_employer'] = 1;
//create the contact with given params.
$contact = CRM_Contact_BAO_Contact::create($params);
$this->assertEquals(1, $values['relationship']['totalCount'], 'Check for total relationship count');
foreach ($values['relationship']['data'] as $key => $val) {
//Now check values of Relationship organization.
- $this->assertEquals($params['create_employer'], $val['name'], 'Check for organization');
+ $this->assertEquals($params['create_employer'], $val['id'], 'Check for organization');
//Now check values of Relationship type.
$this->assertEquals('Employee of', $val['relation'], 'Check for relationship type');
//delete the organization.
$fields = array(
'groupId' => $customGroup->id,
'label' => 'Throwaway Field',
- 'data_type' => 'Memo',
- 'html_type' => 'TextArea',
+ 'dataType' => 'Memo',
+ 'htmlType' => 'TextArea',
);
$customField = Custom::createField(array(), $fields);
'sample' => array('USD' => 'US Dollar'),
'max' => 200,
),
+ array(
+ 'fieldName' => 'soft_credit_type_id',
+ 'sample' => 'In Honor of',
+ ),
),
'CRM_Contribute_DAO_Product' => array(
array(
'max' => 15,
),
),
- 'CRM_Pledge_DAO_Pledge' => array(
- array(
- 'fieldName' => 'honor_type_id',
- 'sample' => 'In Honor of',
- ),
- ),
'CRM_Core_DAO_Phone' => array(
array(
'fieldName' => 'phone_type_id',
'fieldName' => 'contribution_status_id',
'sample' => 'Completed',
),
- array(
- 'fieldName' => 'honor_type_id',
- 'sample' => 'In Honor of',
- ),
),
'CRM_Contribute_DAO_ContributionPage' => array(
array(
<is_active>1</is_active>
<is_view>0</is_view>
<column_name>name1_1</column_name>
+ <in_selector>0</in_selector>
<custom_group_name>example</custom_group_name>
</CustomField>
</CustomFields>
<is_active>1</is_active>
<is_view>0</is_view>
<column_name>name1_1</column_name>
+ <in_selector>0</in_selector>
<custom_group_name>example</custom_group_name>
</CustomField>
</CustomFields>
<is_active>1</is_active>
<is_view>0</is_view>
<column_name>our_select_field_1</column_name>
+ <in_selector>0</in_selector>
<option_group_name>our_select_field_20130818044104</option_group_name>
<custom_group_name>example</custom_group_name>
</CustomField>
<is_active>1</is_active>
<is_view>0</is_view>
<column_name>name1_1</column_name>
+ <in_selector>0</in_selector>
<custom_group_name>example</custom_group_name>
</CustomField>
</CustomFields>
<is_active>1</is_active>
<is_view>0</is_view>
<column_name>name1_1</column_name>
+ <in_selector>0</in_selector>
<custom_group_name>example</custom_group_name>
</CustomField>
</CustomFields>
<is_active>1</is_active>
<is_view>0</is_view>
<column_name>name1_1</column_name>
+ <in_selector>0</in_selector>
<custom_group_name>example</custom_group_name>
</CustomField>
</CustomFields>