1 date_field.test | protected DateFieldBasic::deleteDateField($label, $field_name = 'field_test', $bundle = 'story', $bundle_name = 'Story') |
Remove a Date field though the UI.
File
- core/
modules/ date/ tests/ date_field.test, line 256 - Basic functions for Date tests.
Class
- DateFieldBasic
- @file Basic functions for Date tests.
Code
protected function deleteDateField($label, $field_name = 'field_test', $bundle = 'story', $bundle_name = 'Story') {
$this->backdropGet("admin/structure/types/manage/$bundle/fields/$field_name/delete");
$this->backdropPost(NULL, NULL, t('Delete'));
$this->assertText("The field $label has been deleted from the $bundle_name content type.", 'Removed date field.');
}