You are here

public function DateValidationTestCase::testValidation in Date 7.3

Same name and namespace in other branches
  1. 7 tests/date_validation.test \DateValidationTestCase::testValidation()
  2. 7.2 tests/DateValidationTestCase.test \DateValidationTestCase::testValidation()

Create text date field.

Attempts to create text date field stored as a date with default settings from input which is not valid).

1 method overrides DateValidationTestCase::testValidation()
DatePopupValidationTestCase::testValidation in date_popup/tests/DatePopupValidationTestCase.test
Validate the Date Popup fields.

File

tests/DateValidationTestCase.test, line 30
Validate date field values.

Class

DateValidationTestCase
Validate date field values.

Code

public function testValidation() {
  foreach (array(
    'date',
    'datestamp',
    'datetime',
  ) as $field_type) {
    foreach (array(
      'date_select',
      'date_text',
    ) as $widget_type) {
      $this
        ->checkDateField($field_type, $widget_type, TRUE);
      return;
    }
  }
}