function FeedParserTestCase::testNoTitleSample

Tests a feed with no title; the description should be used to generate one.

File

modules/aggregator/aggregator.test, line 1078

Class

FeedParserTestCase
Tests feed parsing in the Aggregator module.

Code

function testNoTitleSample() {
  $feed = $this->createFeed($this->getNoTitleSample());
  aggregator_refresh($feed);
  $this->drupalGet('aggregator/sources/' . $feed->fid);
  $this->assertResponse(200, format_string('Feed %name exists.', array(
    '%name' => $feed->title,
  )));
  $this->assertRaw("This description should be used to generate a title. This description should be used to generate a title. This description should be used to generate a title. This description should be used to generate a title. This description should be used to...");
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.