You are here

class ParserIcalFeedsTestCase in iCal feed parser 7.2

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

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

Hierarchy

Expanded class hierarchy of ParserIcalFeedsTestCase

File

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

View source
class ParserIcalFeedsTestCase extends FeedsMapperTestCase {
  public function absolutePath() {
    return $this
      ->absolute() . '/' . drupal_get_path('module', 'parser_ical');
  }

  /**
   * Set up the test.
   */
  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');
  }

}

Members