You are here

function autocompleteWidgetsFieldDataTest::testFieldData in Autocomplete Widgets for Text and Number Fields 7

File

tests/autocomplete_widgets.test, line 181

Class

autocompleteWidgetsFieldDataTest

Code

function testFieldData() {
  $instance = $this
    ->createInstance($this->field, 'autocomplete_widgets_flddata', $this->settings);

  // Create a bunch of article nodes.
  foreach ($this->test_values as $value) {
    $settings = array(
      'type' => 'article',
      $this->field['field_name'] => array(
        LANGUAGE_NONE => array(
          array(
            'value' => $value,
          ),
        ),
      ),
    );
    $node = $this
      ->drupalCreateNode($settings);
  }
  $this
    ->basicTest($instance);
  $this
    ->startsWithTest($instance);
  $this
    ->caseTest($instance);
  $this
    ->xssTest($instance);
}