date_ical_parser.test 829 Bytes
Newer Older
Robert Rollins's avatar
Robert Rollins committed
1
2
3
4
5
6
7
8
9
10
11
12
<?php

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

/**
 * Class for testing Feeds <em>content</em> mapper.
 */
class DateIcalFeedsParserTestCase extends FeedsMapperTestCase {
  public function absolutePath() {
13
    return $this->absolute() . '/' . drupal_get_path('module', 'date_ical');
Robert Rollins's avatar
Robert Rollins committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  }

  /**
   * Set up the test.
   */
  public function setUp() {
    $modules = func_get_args();
    if (!empty($modules[0]) && is_array($modules[0])) {
      $modules = $modules[0];
    }
    $modules[] = 'date_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');
  }
}