function DateFieldTestCase::deleteDateField in Date 7
1 call to DateFieldTestCase::deleteDateField()
File
- tests/
date_field.test, line 194
Class
Code
function deleteDateField($field_name = 'Test', $bundle = 'story', $bundle_name = 'Story') {
$this
->drupalGet("admin/structure/types/manage/{$bundle}/fields");
$this
->clickLink('delete');
$this
->drupalPost(NULL, NULL, t('Delete'));
$this
->assertText("The field {$field_name} has been deleted from the {$bundle_name} content type.", 'Removed date field.');
}