You are here

DateFormTestCase.test in Date 7.2

Same filename and directory in other branches
  1. 7.3 tests/DateFormTestCase.test

Contains form specific date element test cases.

File

tests/DateFormTestCase.test
View source
<?php

/**
 * @file
 * Contains form specific date element test cases.
 */

/**
 * Contains form specific date element test cases.
 */
class DateFormTestCase extends DrupalWebTestCase {

  /**
   * Date form info.
   */
  public static function getInfo() {
    return array(
      'name' => t('Date Form test'),
      'description' => t('Test Date form functions.'),
      'group' => t('Date'),
    );
  }

  /**
   * {@inheritdoc}
   */
  public function setUp(array $modules = array()) {
    $modules[] = 'date_test';
    parent::setUp($modules);
  }

  /**
   * Tests rendering of a date element in a form.
   */
  public function testDateForm() {
    $this
      ->drupalGet('date-test/form');
  }

}

Classes

Namesort descending Description
DateFormTestCase Contains form specific date element test cases.