From 405d5f0f768faf142b1dfa21c5e7a4c92ce5d1ef Mon Sep 17 00:00:00 2001 From: Bob Vincent Date: Wed, 25 Jan 2012 14:25:18 -0500 Subject: [PATCH] Issue #61456 by Steve Dondley, edmund.kwok, csevb10, jdefay, alex_b, jeffschuler, David_Rothstein: Aggregator titles display quotes and other characters with HTML entity equivalents badly (write tests) --- core/modules/aggregator/aggregator.test | 2 +- .../tests/aggregator_test_title_entities.xml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletions(-) create mode 100644 core/modules/aggregator/tests/aggregator_test_title_entities.xml diff --git a/core/modules/aggregator/aggregator.test b/core/modules/aggregator/aggregator.test index ec73a7e956e760ed928a6a9d60a535c6f669f25b..27c46737eb27ad8d358004bf09552af36adfc0e0 100644 --- a/core/modules/aggregator/aggregator.test +++ b/core/modules/aggregator/aggregator.test @@ -928,6 +928,6 @@ class FeedParserTestCase extends AggregatorTestCase { aggregator_refresh($feed); $this->drupalGet('aggregator/sources/' . $feed->fid); $this->assertResponse(200, t('Feed %name exists.', array('%name' => $feed->title))); - $this->assertText("Quote" Amp&"); + $this->assertRaw("Quote" Amp&"); } } diff --git a/core/modules/aggregator/tests/aggregator_test_title_entities.xml b/core/modules/aggregator/tests/aggregator_test_title_entities.xml new file mode 100644 index 0000000000000000000000000000000000000000..e526e4418417cf380375465a6465075599d6193b --- /dev/null +++ b/core/modules/aggregator/tests/aggregator_test_title_entities.xml @@ -0,0 +1,14 @@ + + + + Example with Entities + http://example.com + Example RSS Feed With HTML Entities in Title + en-us + + Quote" Amp& + http://example.com/example-turns-one + Some text. + + + -- 1.7.5.4