You are here

public function DateRestrictionsHostEntityMinMaxTestCase::testDateGreaterThanMax in Date Restrictions 7

Fixed max date.

Test YYYY-04-12 is not valid for YYYY-04-01 max restriction.

File

modules/minmax/tests/date_restrictions_minmax_host_entity.test, line 87
Tests for date_restrictions_minmax.module.

Class

DateRestrictionsHostEntityMinMaxTestCase
Tests for host_entity based relative/fixed minmax restrictions.

Code

public function testDateGreaterThanMax() {
  $restrictions = array(
    'max' => array(
      'type' => 'host_entity_date',
      'host_entity_date' => array(
        'field' => 'node:story:field_host_entity_date',
      ),
    ),
  );
  parent::runTests($restrictions, NULL, array(
    $this,
    '_testDateGreaterThanMax',
  ));
}