class ParserIcalFeedsTestCase in iCal feed parser 7.2
Same name and namespace in other branches
- 6.2 tests/parser_ical_feeds.test \ParserIcalFeedsTestCase
- 7 tests/parser_ical_feeds.test \ParserIcalFeedsTestCase
Class for testing Feeds <em>content</em> mapper.
Hierarchy
- class \ParserIcalFeedsTestCase extends \FeedsMapperTestCase
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParserIcalFeedsTestCase:: |
public | function | ||
ParserIcalFeedsTestCase:: |
public | function | Set up the test. | 2 |