public function ParserIcalFeedsLocationTestCase::testLocationFeed in iCal feed parser 7
Same name and namespace in other branches
- 6.2 tests/parser_ical_feeds.test \ParserIcalFeedsLocationTestCase::testLocationFeed()
Basic test using Location.ics
File
- tests/
parser_ical_feeds.test, line 215
Class
Code
public function testLocationFeed() {
$typename = $this
->createConfiguredFeed();
// Import iCal file.
$this
->importFile('ical', $this
->absolutePath() . '/tests/feeds/Location.ics');
$this
->assertText('Created 3 ' . $typename . ' nodes.');
// Check the imported nodes.
// Timezones
$data = array(
array(
'title' => 'Basic location',
'location' => 'Text location',
),
);
for ($i = 1; $i <= count($data); $i++) {
$this
->drupalGet("node/{$i}/edit");
$this
->assertNodeFieldValue('location', $d['location']);
}
}