You are here

public function CerFieldTestCase::testFieldInstanceDelete in Corresponding Entity References 7.2

File

tests/fields.test, line 53

Class

CerFieldTestCase

Code

public function testFieldInstanceDelete() {
  field_delete_instance(field_info_instance('user', 'field_node', 'user'));
  $preset = cer_preset_load('node*page*field_user*user*user*field_node');
  $this
    ->assertNull($preset, 'Deleting a field instance clears CER presets for that instance.');
}