You are here

parser_ical.test in iCal feed parser 7.2

Test case for CCK ical date field text mapper.

File

tests/parser_ical.test
View source
<?php

/**
 * @file
 * Test case for CCK ical date field text mapper.
 */

/**
 * Class for testing Feeds <em>content</em> mapper.
 */
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');
  }

}

Classes

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