| 7 aggregator.test | FeedParserTestCase::testRSS091Sample() |
| 8 aggregator.test | FeedParserTestCase::testRSS091Sample() |
Test a feed that uses the RSS 0.91 format.
File
- modules/
aggregator/ aggregator.test, line 909 - Tests for aggregator.module.
Code
function testRSS091Sample() {
$feed = $this->createFeed($this->getRSS091Sample());
aggregator_refresh($feed);
$this->drupalGet('aggregator/sources/' . $feed->fid);
$this->assertResponse(200, t('Feed %name exists.', array('%name' => $feed->title)));
$this->assertText('First example feed item title');
$this->assertLinkByHref('http://example.com/example-turns-one');
$this->assertText('First example feed item description.');
}
Login or register to post comments