You are here

protected function ParserIcalFeedsTestCase::assertCCKFieldTimezone in iCal feed parser 7

Same name and namespace in other branches
  1. 6.2 tests/parser_ical_feeds.test \ParserIcalFeedsTestCase::assertCCKFieldTimezone()
1 call to ParserIcalFeedsTestCase::assertCCKFieldTimezone()
ParserIcalFeedsDateTestCase::testBasicFeed in tests/parser_ical_feeds.test
Basic test using Basic.ics

File

tests/parser_ical_feeds.test, line 111

Class

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

Code

protected function assertCCKFieldTimezone($field_name, $value) {
  $xpath = '//select[@name="field_' . $field_name . '[0][timezone][timezone]"]';
  $message = t('Found form %field_name timezone with the expected value.', array(
    '%field_name' => $field_name,
  ));
  $this
    ->assertFieldByXPath($xpath, $value, $message);
}