You are here

public function DateRestrictionsStaticMinMaxTestCase::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.test, line 169
Tests for date_restrictions_minmax.module.

Class

DateRestrictionsStaticMinMaxTestCase
Test "minmax" restrictions, based on static relative/fixed limits.

Code

public function testIntervalLowerThanMin() {
  $restrictions = array(
    'min' => array(
      'type' => 'interval',
      'interval' => array(
        'interval' => 1,
        'period' => 'day',
      ),
    ),
  );
  parent::runTests($restrictions, NULL, array(
    $this,
    '_testIntervalLowerThanMin',
  ));
}