You are here

protected function DateFieldBase::deleteDateField in Date 8

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

@todo.

File

date_field/lib/Drupal/date_field/Tests/DateFieldBase.php, line 165
Basic functions for Date tests.

Class

DateFieldBase

Namespace

Drupal\date\Tests

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