You are here

function ParserIcalLocationTestCase::locationAssertions in iCal feed parser 7.2

Correct assertions. This is overridden in the (date api) test, as it's slightly broken.

1 call to ParserIcalLocationTestCase::locationAssertions()
ParserIcalLocationTestCase::testLocation in tests/parser_ical_location.test
Basic test on simple ical file.
1 method overrides ParserIcalLocationTestCase::locationAssertions()
ParserIcalDateModuleLocationCase::locationAssertions in tests/parser_ical_location.test
Date module location assertions; restricted set as some are broken.

File

tests/parser_ical_location.test, line 61
Test case for CCK ical date field text mapper.

Class

ParserIcalLocationTestCase
Common class for testing ical parsers link and guid mapping.

Code

function locationAssertions() {
  $this
    ->drupalGet('node/1/edit');
  $this
    ->assertFieldByName('field_alpha[und][0][value]', 'Conference Room - F123, Bldg. 002', 'Feed item 1 location text correct.');
  $this
    ->drupalGet('node/2/edit');
  $this
    ->assertFieldByName('field_alpha[und][0][value]', 'Conference Room - F123, Bldg. 002', 'Feed item 2 location text correct.');
  $this
    ->drupalGet('node/3/edit');
  $this
    ->assertFieldByName('field_alpha[und][0][value]', 'Regardz Meeting Center Eenhoorn @ Koningin Wilhelminalaan 33, Amersfoort, Utrecht 3818 HN', 'Feed item 3 location text correct.');
}