You are here

protected function ParserIcalFeedsTestCase::assertCCKFieldValue2 in iCal feed parser 7

Same name and namespace in other branches
  1. 6.2 tests/parser_ical_feeds.test \ParserIcalFeedsTestCase::assertCCKFieldValue2()

assertCCKFieldValue uses an XPath on the CCK fields on the form, the method looks in 'value' and for plain text the end date is a 'value2'

Can't quickly see a nice extend on it so this _yet_ but sure it's there so this is a simple version of the function making assumtions that we know of the date field.

@todo this properly.

1 call to ParserIcalFeedsTestCase::assertCCKFieldValue2()
ParserIcalFeedsDateTestCase::testBasicFeed in tests/parser_ical_feeds.test
Basic test using Basic.ics

File

tests/parser_ical_feeds.test, line 105

Class

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

Code

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