function FormatDateUnitTest::setUp
Overrides DrupalWebTestCase::setUp
File
-
modules/
simpletest/ tests/ common.test, line 2932
Class
- FormatDateUnitTest
- Tests for the format_date() function.
Code
function setUp() {
parent::setUp('locale');
variable_set('configurable_timezones', 1);
variable_set('date_format_long', 'l, j. F Y - G:i');
variable_set('date_format_medium', 'j. F Y - G:i');
variable_set('date_format_short', 'Y M j - g:ia');
variable_set('locale_custom_strings_' . self::LANGCODE, array(
'' => array(
'Sunday' => 'domingo',
),
'Long month name' => array(
'March' => 'marzo',
),
));
$this->refreshVariables();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.