You are here

public function DateToolsTestCase::testTools in Date 7

Same name and namespace in other branches
  1. 7.3 date_tools/tests/DateToolsTestCase.test \DateToolsTestCase::testTools()
  2. 7.2 date_tools/tests/DateToolsTestCase.test \DateToolsTestCase::testTools()

File

date_tools/tests/date_tools.test, line 26

Class

DateToolsTestCase

Code

public function testTools() {

  // Create a date field using the Date Wizard.
  $form_values = array(
    'label' => 'Test',
    'field_type' => 'datetime',
    'widget_type' => 'date_select',
    'todate' => '',
  );
  $this
    ->createDateWizard($form_values);
  $this
    ->dateForm($options = 'select');
  $this
    ->assertText('Thu, 10/07/2010 - 10:30', 'Found the correct date for the Date Wizard datetime field using the date_select widget.');
  $this
    ->deleteDateField();
}