You are here

function DateRepeatFormTest::deleteDateField in Date 8

1 call to DateRepeatFormTest::deleteDateField()
DateRepeatFormTest::testDateRepeatForm in date_repeat/lib/Drupal/date_repeat/Tests/DateRepeatFormTest.php

File

date_repeat/lib/Drupal/date_repeat/Tests/DateRepeatFormTest.php, line 504
Test Date Repeat form.

Class

DateRepeatFormTest

Namespace

Drupal\date_repeat\Tests

Code

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