Set the default field storage backend for fields created during tests.
Overrides FieldUnitTestBase::setUp
public function setUp() {
parent::setUp();
// Create number fields and instances for validation.
foreach (array(
'integer',
'float',
'decimal',
) as $type) {
$this->field[$type] = array(
'field_name' => 'field_' . $type,
'type' => 'number_' . $type,
);
field_create_field($this->field[$type]);
$this->instance[$type] = array(
'entity_type' => 'entity_test',
'field_name' => 'field_' . $type,
'bundle' => 'entity_test',
);
field_create_instance($this->instance[$type]);
}
}