public function DatePopupValidationTestCase::testValidation in Date 7.3
Same name and namespace in other branches
- 7.2 date_popup/tests/DatePopupValidationTestCase.test \DatePopupValidationTestCase::testValidation()
Validate the Date Popup fields.
Overrides DateValidationTestCase::testValidation
File
- date_popup/
tests/ DatePopupValidationTestCase.test, line 24 - Data validation tests for the Date Popup module.
Class
- DatePopupValidationTestCase
- Data validation tests for the Date Popup module.
Code
public function testValidation() {
// Attempts to create text date field stored as a date with default settings
// (from input which is not valid).
foreach (array(
'date',
'datestamp',
'datetime',
) as $field_type) {
$this
->checkDateField($field_type, 'date_popup', TRUE);
return;
}
}