You are here

public function DateToolsTestCase::deleteDateField in Date 7.3

Same name and namespace in other branches
  1. 7 date_tools/tests/date_tools.test \DateToolsTestCase::deleteDateField()
  2. 7.2 date_tools/tests/DateToolsTestCase.test \DateToolsTestCase::deleteDateField()

Delete date field test.

1 call to DateToolsTestCase::deleteDateField()
DateToolsTestCase::testTools in date_tools/tests/DateToolsTestCase.test
Creates a date field using the Date Wizard.

File

date_tools/tests/DateToolsTestCase.test, line 100
Tests for Date Tools.

Class

DateToolsTestCase
Tests for Date Tools.

Code

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