public function DateToolsTestCase::testTools in Date 7.2
Same name and namespace in other branches
- 7.3 date_tools/tests/DateToolsTestCase.test \DateToolsTestCase::testTools()
- 7 date_tools/tests/date_tools.test \DateToolsTestCase::testTools()
Creates a date field using the Date Wizard.
File
- date_tools/
tests/ DateToolsTestCase.test, line 59 - Tests for Date Tools.
Class
- DateToolsTestCase
- Tests for Date Tools.
Code
public function testTools() {
$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();
}