function FeedParserTestCase::testHtmlEntitiesSample

Tests a feed that uses HTML entities in item titles.

File

drupal/modules/aggregator/aggregator.test, line 1063
Tests for aggregator.module.

Class

FeedParserTestCase
Tests feed parsing in the Aggregator module.

Code

function testHtmlEntitiesSample() {
  $feed = $this
    ->createFeed($this
    ->getHtmlEntitiesSample());
  aggregator_refresh($feed);
  $this
    ->drupalGet('aggregator/sources/' . $feed->fid);
  $this
    ->assertResponse(200, format_string('Feed %name exists.', array(
    '%name' => $feed->title,
  )));
  $this
    ->assertRaw("Quote" Amp&");
}