You are here

function FeedParserTestCase::testHtmlEntitiesSample in Drupal 7

Tests a feed that uses HTML entities in item titles.

File

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&");
}