You are here

function FileFieldTestCase::updateFileField in FileField 6.3

Update an existing FileField with new settings.

5 calls to FileFieldTestCase::updateFileField()
FileFieldPathTestCase::testUploadPath in tests/filefield.test
Test normal formatter display on node display.
FileFieldValidateTestCase::testFileExtension in tests/filefield.test
Test the file extension, do additional checks if mimedetect is installed.
FileFieldValidateTestCase::testFileMaxSize in tests/filefield.test
Test the max file size validator.
FileFieldValidateTestCase::testNodeMaxSize in tests/filefield.test
Test the max file size per node validator.
FileFieldValidateTestCase::testRequired in tests/filefield.test
Test required property on file fields.

File

tests/filefield.test, line 79

Class

FileFieldTestCase

Code

function updateFileField($name, $type, $field_options = array(), $widget_options = array()) {
  $field = content_fields($name, $type);
  $field = array_merge($field, $field_options);
  $field['widget'] = array_merge($field['widget'], $widget_options);
  return content_field_instance_update($field);
}