public function DateRestrictionsHostEntityMinMaxTestCase::testDateLowerThanMin in Date Restrictions 7
Fixed min date.
Test YYYY-04-12 is not valid for YYYY-04-14 min restriction.
File
- modules/
minmax/ tests/ date_restrictions_minmax_host_entity.test, line 53 - Tests for date_restrictions_minmax.module.
Class
- DateRestrictionsHostEntityMinMaxTestCase
- Tests for host_entity based relative/fixed minmax restrictions.
Code
public function testDateLowerThanMin() {
$restrictions = array(
'min' => array(
'type' => 'host_entity_date',
'host_entity_date' => array(
'field' => 'node:story:field_host_entity_date',
),
),
);
parent::runTests($restrictions, NULL, array(
$this,
'_testDateLowerThanMin',
));
}