You are here

function ParserIcalDateModuleLocationCase::locationAssertions in iCal feed parser 7.2

Date module location assertions; restricted set as some are broken.

Overrides ParserIcalLocationTestCase::locationAssertions

File

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

Class

ParserIcalDateModuleLocationCase
Class for testing iCal (date api) location 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.');

  /**
   * Broken as per https://drupal.org/node/282521
   *
  $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.');
  */
}