public function DateRestrictionsStaticMinMaxTestCase::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.test, line 204 - Tests for date_restrictions_minmax.module.
Class
- DateRestrictionsStaticMinMaxTestCase
- Test "minmax" restrictions, based on static relative/fixed limits.
Code
public function testIntervalGreaterThanMax() {
$restrictions = array(
'max' => array(
'type' => 'interval',
'interval' => array(
'interval' => 1,
'period' => 'day',
),
),
);
parent::runTests($restrictions, NULL, array(
$this,
'_testIntervalGreaterThanMax',
));
}