You are here

function testPreset in Semantic Fields 7

1 call to testPreset()
SemanticFieldsPermissionsTestCase::testPermission in ./semantic_fields.test
Tests access to Semantic fields configuration.

File

./semantic_fields.test, line 82
Tests for semantic_fields.module.

Code

function testPreset($name) {
  $preset = array();
  $preset['admin_title'] = $name;
  $preset['name'] = 'ipsum';
  $preset['description'] = 'Ipsum preset';
  $preset['semantic_field_settings[field_element]'] = 'div';
  $preset['semantic_field_settings[field_class]'] = 'field-class';
  $preset['semantic_field_settings[field_prefix]'] = 'field prefix';
  $preset['semantic_field_settings[field_suffix]'] = 'field suffix';
  $preset['semantic_field_settings[label_element_above]'] = 'h3';
  $preset['semantic_field_settings[label_class_above]'] = 'label-class-above';
  $preset['semantic_field_settings[label_suffix_above]'] = 'label suffix above';
  $preset['semantic_field_settings[label_element_inline]'] = 'span';
  $preset['semantic_field_settings[label_class_inline]'] = 'label-class-inline';
  $preset['semantic_field_settings[label_suffix_inline]'] = ':';
  $preset['semantic_field_settings[multiple_items_element]'] = 'div';
  $preset['semantic_field_settings[multiple_items_class]'] = 'multiple-items-class';
  $preset['semantic_field_settings[multiple_item_element]'] = 'div';
  $preset['semantic_field_settings[multiple_item_class]'] = 'multiple-item-class';
  $preset['semantic_field_settings[multiple_item_separator]'] = 'multiple item seperator';
  $preset['semantic_field_settings[single_item_element]'] = 'div';
  $preset['semantic_field_settings[single_item_class]'] = 'single-item-class';
  $preset['semantic_field_settings[last_every_nth]'] = '0';
  $preset['semantic_field_settings[first_class]'] = 'first';
  $preset['semantic_field_settings[last_class]'] = 'last';
  $preset['semantic_field_settings[striping_classes]'] = 'odd even';
  return $preset;
}