You are here

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

Implementation of setUp().

Overrides autocompleteWidgetsBaseTest::setUp

File

tests/autocomplete_widgets.test, line 164

Class

autocompleteWidgetsFieldDataTest

Code

function setUp() {
  parent::setUp();

  // Attach a text field to the article content type.
  $this->field = array(
    'field_name' => 'existing_data',
    'type' => 'text',
    'cardinality' => 1,
    'settings' => array(),
  );
  $this->field = field_create_field($this->field);

  // Set the autocomplete_path for quick reference.
  $this->path = 'autocomplete_widgets/node/article/' . $this->field['field_name'] . '/';
}