Skip to content

Commit

Permalink
test adding option_group_id by name
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmcandrew committed May 24, 2018
1 parent 5830940 commit f93514f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/phpunit/api/v3/CustomFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,20 @@ public function testUpdateCustomField() {
$this->customGroupDelete($customGroup['id']);
}

public function testCustomFieldCreateWithOptionGroupName() {
$customGroup = $this->customGroupCreate(array('extends' => 'Individual', 'title' => 'test_custom_group'));
$params = array(
'custom_group_id' => $customGroup['id'],
'name' => 'Activity type',
'label' => 'Activity type',
'data_type' => 'String',
'html_type' => 'Select',
'option_group_id' => 'activity_type',
);
$result = $this->callAPISuccess('CustomField', 'create', $params);
}


/**
* @param $getFieldsResult
*
Expand Down

0 comments on commit f93514f

Please sign in to comment.