You are here

public function ParserIcalFeedsTestCase::setUp in iCal feed parser 7.2

Same name and namespace in other branches
  1. 6.2 tests/parser_ical_feeds.test \ParserIcalFeedsTestCase::setUp()
  2. 7 tests/parser_ical_feeds.test \ParserIcalFeedsTestCase::setUp()

Set up the test.

2 calls to ParserIcalFeedsTestCase::setUp()
ParserIcalCategoriesTestCase::setUp in tests/parser_ical_categories.test
Additional set up.
ParserIcalLinkTestCase::setUp in tests/parser_ical_link.test
Set up the test.
2 methods override ParserIcalFeedsTestCase::setUp()
ParserIcalCategoriesTestCase::setUp in tests/parser_ical_categories.test
Additional set up.
ParserIcalLinkTestCase::setUp in tests/parser_ical_link.test
Set up the test.

File

tests/parser_ical.test, line 19
Test case for CCK ical date field text mapper.

Class

ParserIcalFeedsTestCase
Class for testing Feeds <em>content</em> mapper.

Code

public function setUp() {
  $modules = func_get_args();
  if (!empty($modules[0]) && is_array($modules[0])) {
    $modules = $modules[0];
  }
  $modules[] = 'parser_ical';
  parent::setUp($modules);

  // site date settings : consistent site timezone to against
  variable_set('date_default_timezone', 'Pacific/Apia');

  // and just because I'll make mistakes working with tests with the US date format
  variable_set('date_format_short', 'Y-m-d H:i');
}