class ParserIcalDateModuleLocationCase in iCal feed parser 7.2
Class for testing iCal (date api) location mapping.
Hierarchy
- class \ParserIcalFeedsTestCase extends \FeedsMapperTestCase
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParserIcalDateModuleLocationCase:: |
public | function |
Set and configure the parser plugin. Overrides ParserIcalLocationTestCase:: |
|
ParserIcalDateModuleLocationCase:: |
public static | function | ||
ParserIcalDateModuleLocationCase:: |
function |
Date module location assertions; restricted set as some are broken. Overrides ParserIcalLocationTestCase:: |
||
ParserIcalFeedsTestCase:: |
public | function | ||
ParserIcalFeedsTestCase:: |
public | function | Set up the test. | 2 |
ParserIcalLocationTestCase:: |
function | Basic test on simple ical file. |