You are here

protected function FeedsMapperContentTaxonomyTestCase::selectFieldWidget in Feeds 6

Select the widget for the field. Default implementation provides widgets for Date, Number, Text, Node reference, User reference, Email, Emfield, Filefield, Image, and Link.

Extracted as a method to allow test implementations to add widgets for the tested CCK field type(s). $field_name allow to test the same field type with different widget (is this useful ?)

Parameters

$field_name: The name of the field.

$field_type: The CCK type of the field.

Return value

The widget for this field, or NULL if the field_type is not supported by this test class.

Overrides FeedsMapperTestCase::selectFieldWidget

File

tests/feeds_mapper_content_taxonomy.test, line 139

Class

FeedsMapperContentTaxonomyTestCase
Class for testing Feeds <em>content</em> mapper.

Code

protected function selectFieldWidget($field_name, $field_type) {
  if ($field_type == 'content_taxonomy') {
    return 'content_taxonomy_select';
  }
  else {
    return parent::selectFieldWidget($field_name, $field_type);
  }
}