X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Faggregator%2Ftests%2Fsrc%2FFunctional%2FAddFeedTest.php;h=1ff60022d27b76cb6f926774da7c074f654c941b;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=e4f63ea73105c326eaeb6d819ce72c59b66b9070;hpb=bfbba508964731508b9bd6d5835c2edc858db95b;p=yaffs-website diff --git a/web/core/modules/aggregator/tests/src/Functional/AddFeedTest.php b/web/core/modules/aggregator/tests/src/Functional/AddFeedTest.php index e4f63ea73..1ff60022d 100644 --- a/web/core/modules/aggregator/tests/src/Functional/AddFeedTest.php +++ b/web/core/modules/aggregator/tests/src/Functional/AddFeedTest.php @@ -60,7 +60,7 @@ class AddFeedTest extends AggregatorTestBase { $this->assertNoRaw('Test feed title '); // Ensure the feed icon title is escaped. - $this->assertTrue(strpos(str_replace(["\n", "\r"], '', $this->getRawContent()), 'class="feed-icon"> Subscribe to Test feed title <script>alert(123);</script> feed') !== FALSE); + $this->assertTrue(strpos(str_replace(["\n", "\r"], '', $this->getSession()->getPage()->getContent()), 'class="feed-icon"> Subscribe to Test feed title <script>alert(123);</script> feed') !== FALSE); } /**