function FeedParserTestCase::testHtmlEntitiesSample

Tests a feed that uses HTML entities in item titles.

File

modules/aggregator/aggregator.test, line 1063

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

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