public function DateToolsTestCase::deleteDateField in Date 7.2
Same name and namespace in other branches
- 7.3 date_tools/tests/DateToolsTestCase.test \DateToolsTestCase::deleteDateField()
- 7 date_tools/tests/date_tools.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.');
}