You are here

function DateUITest::deleteDateField in Date 8

Same name in this branch
  1. 8 lib/Drupal/date/Tests/DateUITest.php \Drupal\date\Tests\DateUITest::deleteDateField()
  2. 8 date_field/lib/Drupal/date_field/Tests/DateUITest.php \Drupal\date\Tests\DateUITest::deleteDateField()

@todo.

2 calls to DateUITest::deleteDateField()
DateUITest::testFieldUI in lib/Drupal/date/Tests/DateUITest.php
@todo.
DateUITest::testFieldUI in date_field/lib/Drupal/date_field/Tests/DateUITest.php
@todo.

File

lib/Drupal/date/Tests/DateUITest.php, line 117
Test date UI.

Class

DateUITest

Namespace

Drupal\date\Tests

Code

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