public function DateFieldTestCase::testField in Date 7
Same name and namespace in other branches
- 7.3 tests/DateFieldTestCase.test \DateFieldTestCase::testField()
- 7.2 tests/DateFieldTestCase.test \DateFieldTestCase::testField()
File
- tests/
date_field.test, line 32
Class
Code
public function testField() {
$edit = array();
$edit['name'] = 'Story';
$edit['type'] = 'story';
$this
->drupalPost('admin/structure/types/add', $edit, t('Save content type'));
$this
->assertText('The content type Story has been added.', 'Content type added.');
// Create a date field with simple values.
$values = array(
'label' => 'Test',
'widget_type' => 'date_select',
);
$this
->createDateField($values);
// Create a node with this field.
$edit = array();
$this
->dateForm('select');
$this
->deleteDateField();
}