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