function FeedParserTest::testHtmlEntitiesSample

Tests a feed that uses HTML entities in item titles.

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/FeedParserTest.php, line 69
Definition of Drupal\aggregator\Tests\FeedParserTest.

Class

FeedParserTest
Tests for feed parsing.

Namespace

Drupal\aggregator\Tests

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