public function DateRestrictionsHostEntityMinMaxTestCase::testIntervalLowerThanMin in Date Restrictions 7
Fixed min interval.
Test today is not valid for today+1 min restriction.
File
- modules/
minmax/ tests/ date_restrictions_minmax_host_entity.test, line 121 - Tests for date_restrictions_minmax.module.
Class
- DateRestrictionsHostEntityMinMaxTestCase
- Tests for host_entity based relative/fixed minmax restrictions.
Code
public function testIntervalLowerThanMin() {
$restrictions = array(
'min' => array(
'type' => 'host_entity_interval',
'host_entity_interval' => array(
'field' => 'node:story:field_host_entity_interval',
),
),
);
parent::runTests($restrictions, NULL, array(
$this,
'_testIntervalLowerThanMin',
));
}