public function RangeBaseWebTestCase::deleteTestRangeField in Range 7
Deletes previously created range field of a given type.
Parameters
string $field_type: Range field type. Possible values:
- range_decimal
- range_float
- range_integer
1 call to RangeBaseWebTestCase::deleteTestRangeField()
- RangeFieldWidgetTestCase::_testRangeFieldWidget in tests/
range.field_widget.test - Helper method. Tests range field widget for a given range field type.
File
- tests/
range.base.test, line 188 - Contains range base test classes.
Class
- RangeBaseWebTestCase
- Base class for the range module's tests.
Code
public function deleteTestRangeField($field_type = 'range_integer') {
$field_name = $this
->getTestFieldName($field_type);
$instance = field_info_instance('node', $field_name, $this->contentType);
field_delete_instance($instance);
}