Projet

Général

Profil

Révision ed9a13f1

Ajouté par Assos Assos il y a presque 4 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/feeds/tests/feeds_mapper.test
10 10
 */
11 11
class FeedsMapperTestCase extends FeedsWebTestCase {
12 12

  
13
  // A lookup map to select the widget for each field type.
13
  /**
14
   * A lookup map to select the widget for each field type.
15
   */
14 16
  private static $field_widgets = array(
15 17
    'date' => 'date_text',
16 18
    'datestamp' => 'date_text',
......
33 35
    'text_long' => 'text_textarea',
34 36
    'text_with_summary' => 'text_textarea_with_summary',
35 37
    'userreference' => 'userreference_select',
36
   );
38
  );
37 39

  
38 40
  /**
39 41
   * Assert that a form field for the given field with the given value
......
106 108
   *   The name of the CCK field.
107 109
   * @param $value
108 110
   *   The (raw) value expected for the CCK field.
111
   *
109 112
   * @return An array of form field values.
110 113
   */
111 114
  protected function getFormFieldsValues($field_name, $value) {
112
    return array((string)$value);
115
    return array((string) $value);
113 116
  }
114 117

  
115 118
  /**
......
134 137

  
135 138
    $admin_type_url = 'admin/structure/types/manage/' . str_replace('_', '-', $typename);
136 139

  
137
    // Create the fields
140
    // Create the fields.
138 141
    foreach ($fields as $field_name => $options) {
139 142
      if (is_string($options)) {
140 143
        $options = array('type' => $options);

Formats disponibles : Unified diff