function FieldInstanceCrudTestCase::setUp

Set the default field storage backend for fields created during tests.

Overrides FieldTestCase::setUp

File

modules/field/tests/field.test, line 2933

Class

FieldInstanceCrudTestCase

Code

function setUp() {
  parent::setUp('field_test');
  $this->field = array(
    'field_name' => drupal_strtolower($this->randomName()),
    'type' => 'test_field',
  );
  field_create_field($this->field);
  $this->instance_definition = array(
    'field_name' => $this->field['field_name'],
    'entity_type' => 'test_entity',
    'bundle' => 'test_bundle',
  );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.