protected function DateFieldBase::deleteDateField in Date 8
Same name in this branch
- 8 lib/Drupal/date/Tests/DateFieldBase.php \Drupal\date\Tests\DateFieldBase::deleteDateField()
- 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
Namespace
Drupal\date\TestsCode
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.');
}