You are here

class ParserIcalDateModuleLocationCase in iCal feed parser 7.2

Class for testing iCal (date api) location mapping.

Hierarchy

Expanded class hierarchy of ParserIcalDateModuleLocationCase

File

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

View source
class ParserIcalDateModuleLocationCase extends ParserIcalLocationTestCase {
  public static function getInfo() {
    return array(
      'name' => 'Location (date api)',
      'description' => 'Test location import support.',
      'group' => 'Parser iCal',
    );
  }
  public function configureParser() {
    $this
      ->setPlugin('ical', 'ParserIcalDateModule');
  }

  /**
   * Date module location assertions; restricted set as some are broken.
   */
  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.');
    */
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ParserIcalDateModuleLocationCase::configureParser public function Set and configure the parser plugin. Overrides ParserIcalLocationTestCase::configureParser
ParserIcalDateModuleLocationCase::getInfo public static function
ParserIcalDateModuleLocationCase::locationAssertions function Date module location assertions; restricted set as some are broken. Overrides ParserIcalLocationTestCase::locationAssertions
ParserIcalFeedsTestCase::absolutePath public function
ParserIcalFeedsTestCase::setUp public function Set up the test. 2
ParserIcalLocationTestCase::testLocation function Basic test on simple ical file.