You are here

public function Name_FieldTestCase::name_getFieldSettings in Name Field 7

1 call to Name_FieldTestCase::name_getFieldSettings()
Name_FieldTestCase::testFieldEntry in tests/name.test
The most basic test. This should only fail if there is a change to the Drupal API.

File

tests/name.test, line 985
Tests for the name module.

Class

Name_FieldTestCase
Tests for the admin settings and custom format page.

Code

public function name_getFieldSettings() {
  $field_settings = array(
    'field[settings][components][title]' => TRUE,
    'field[settings][components][given]' => TRUE,
    'field[settings][components][middle]' => TRUE,
    'field[settings][components][family]' => TRUE,
    'field[settings][components][generational]' => TRUE,
    'field[settings][components][credentials]' => TRUE,
    'field[settings][minimum_components][title]' => FALSE,
    'field[settings][minimum_components][given]' => TRUE,
    'field[settings][minimum_components][middle]' => FALSE,
    'field[settings][minimum_components][family]' => TRUE,
    'field[settings][minimum_components][generational]' => FALSE,
    'field[settings][minimum_components][credentials]' => FALSE,
    'field[settings][max_length][title]' => 31,
    'field[settings][max_length][given]' => 63,
    'field[settings][max_length][middle]' => 127,
    'field[settings][max_length][family]' => 63,
    'field[settings][max_length][generational]' => 15,
    'field[settings][max_length][credentials]' => 255,
    'field[settings][labels][title]' => t('Title'),
    'field[settings][labels][given]' => t('Given'),
    'field[settings][labels][middle]' => t('Middle name(s)'),
    'field[settings][labels][family]' => t('Family'),
    'field[settings][labels][generational]' => t('Generational'),
    'field[settings][labels][credentials]' => t('Credentials'),
    'field[settings][sort_options][title]' => TRUE,
    'field[settings][sort_options][generational]' => FALSE,
    'field[settings][title_options]' => "-- --\nMr.\nMrs.\nMiss\nMs.\nDr.\nProf.",
    'field[settings][generational_options]' => "-- --\nJr.\nSr.\nI\nII\nIII\nIV\nV\nVI\nVII\nVIII\nIX\nX",
  );
  return $field_settings;
}