You are here

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

Implementation of setUp().

Overrides autocompleteWidgetsBaseTest::setUp

File

tests/autocomplete_widgets.test, line 252

Class

autocompleteWidgetsNodeReferenceTest

Code

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

  // Attach a text field to the article content type.
  $this->field = array(
    'field_name' => 'node_reference_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'] . '/';
}