You are here

function testImportPreset in Semantic Fields 7

File

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

Code

function testImportPreset() {
  $preset = new stdClass();
  $preset->disabled = FALSE;
  $preset->api_version = 1;
  $preset->name = "ordered_list";
  $preset->admin_title = "Ordered list";
  $preset->description = "Display the content as an ordered list";
  $preset->data = array(
    "field_element" => "ol",
    "field_class" => "",
    "field_prefix" => "",
    "field_suffix" => "",
    "label_element_above" => "span",
    "label_class_above" => "",
    "label_suffix_above" => "",
    "label_element_inline" => "span",
    "label_class_inline" => "",
    "label_suffix_inline" => ":",
    "multiple_items_element" => "",
    "multiple_items_class" => "",
    "multiple_item_element" => "li",
    "multiple_item_class" => "",
    "multiple_item_separator" => "",
    "use_singlevalue_settings" => 0,
    "single_item_element" => "li",
    "single_item_class" => "",
    "last_every_nth" => "0",
    "first_class" => "first",
    "last_class" => "last",
    "striping_classes" => "odd even",
  );
  return $preset;
}