public function BundleInherit::fieldInstanceDelete in Bundle Inherit 7
1 call to BundleInherit::fieldInstanceDelete()
- BundleInherit::testCRUD in ./
bundle_inherit.test - Run complex CRUD test based on node entity type.
File
- ./
bundle_inherit.test, line 96 - Tests for bundle_inherit module.
Class
- BundleInherit
- @file Tests for bundle_inherit module.
Code
public function fieldInstanceDelete() {
field_delete_instance($this->extraField['instance']);
$child_type_field_instance = field_info_instance('node', $this->extraField['field']['field_name'], $this->childType->type);
$this
->assertTrue($child_type_field_instance['locked'] == FALSE, t('Child type field instance was succesfuly deleted when the parent type one was deleted.'));
}