You are here

function FieldInstanceCrudTestCase::setUp in Drupal 7

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

Overrides FieldTestCase::setUp

File

modules/field/tests/field.test, line 2856
Tests for field.module.

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',
  );
}