diff --git a/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php b/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php index 44d1e9833f43..e0a1cf9b62cc 100644 --- a/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php +++ b/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php @@ -752,10 +752,12 @@ public function testAlterCustomFieldDisplayValueHook() { )); $values = []; - $fields = ['custom_' . $fieldId => $this->callAPISuccess('Contact', 'getfield', [ - 'name' => 'custom_' . $fieldId, - 'action' => 'get', - ])['values']]; + $fields = [ + 'custom_' . $fieldId => $this->callAPISuccess('Contact', 'getfield', [ + 'name' => 'custom_' . $fieldId, + 'action' => 'get', + ])['values'], + ]; // CRM_Core_BAO_UFGroup::getValues() invokes CRM_Core_BAO_CustomField::displayValue() function. CRM_Core_BAO_UFGroup::getValues($contactId, $fields, $values);