You are here

function DateFieldTestCase::deleteDateField in Date 7

1 call to DateFieldTestCase::deleteDateField()
DateFieldTestCase::testField in tests/date_field.test

File

tests/date_field.test, line 194

Class

DateFieldTestCase

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.');
}