You are here

protected function DateFieldTestBase::deleteDateField in Date 7.2

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

Test delete date field.

7 calls to DateFieldTestBase::deleteDateField()
DateFieldTestBase::checkDateField in tests/DateFieldTestBase.test
Run some tests against a specific field type/widget combination.
DatePopupFieldTestCase::testField in date_popup/tests/DatePopupFieldTestCase.test
Test the field settings.
DateTimezoneTestCase::testFieldWidgetSettings in tests/DateTimezoneTestCase.test
Test timezone handling validation on the field settings form.
DateTimezoneTestCase::testMultiUserTimezone in tests/DateTimezoneTestCase.test
Validates timezone handling with a multi-value date field.
DateTimezoneTestCase::testTimezone in tests/DateTimezoneTestCase.test
Create a date fields, combining various timezones and granularity.

... See full list

File

tests/DateFieldTestBase.test, line 300
Shared test functionality.

Class

DateFieldTestBase
Shared test functionality.

Code

protected function deleteDateField($label, $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 {$label} has been deleted from the {$bundle_name} content type.", 'Removed date field.');
}