+ /**
+ * CRM-12773 - expectation is that civicrm quietly ignores
+ * fields without values
+ */
+ function testCreateWithNULLCustomCRM12773() {
+ $ids = $this->entityCustomGroupWithSingleFieldCreate(__FUNCTION__, __FILE__);
+ $params = $this->_params;
+ $params['custom_' . $ids['custom_field_id']] = NULL;
+ $result = civicrm_api('contact', 'create', $params);
+ $this->assertAPISuccess($result, ' in line ' . __LINE__);
+ $this->customFieldDelete($ids['custom_field_id']);
+ $this->customGroupDelete($ids['custom_group_id']);
+ }
+
+