You are here

public function DateRepeatFormTestCase::deleteDateField in Date 7.2

Same name and namespace in other branches
  1. 7.3 date_repeat/tests/date_repeat_form.test \DateRepeatFormTestCase::deleteDateField()

Test date field removal.

1 call to DateRepeatFormTestCase::deleteDateField()
DateRepeatFormTestCase::testDateRepeatForm in date_repeat/tests/date_repeat_form.test
Test the Date Repeat form.

File

date_repeat/tests/date_repeat_form.test, line 547
Test Date Repeat form.

Class

DateRepeatFormTestCase
Test Date Repeat form.

Code

public function deleteDateField() {
  $this
    ->drupalGet('admin/structure/types/manage/date/fields');
  $this
    ->clickLink('delete');
  $this
    ->drupalPost(NULL, NULL, t('Delete'));
  $this
    ->assertText(t('The field Test has been deleted from the Date content type.'), t('Removed date field.'));
}