X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Faggregator%2Ftests%2Fsrc%2FFunctional%2FAggregatorRenderingTest.php;fp=web%2Fcore%2Fmodules%2Faggregator%2Ftests%2Fsrc%2FFunctional%2FAggregatorRenderingTest.php;h=b03ddf88db2db9adb1f44e2b2b5bfe3f1cc301f2;hp=37e6470847f5f5c5f490c57f57cb8b0d4735d6f6;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php b/web/core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php index 37e647084..b03ddf88d 100644 --- a/web/core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php +++ b/web/core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php @@ -2,7 +2,7 @@ namespace Drupal\Tests\aggregator\Functional; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\views\Entity\View; /** @@ -114,7 +114,7 @@ class AggregatorRenderingTest extends AggregatorTestBase { // Find the expected read_more link on the sources page. $href = $feed->url(); $links = $this->xpath('//a[@href = :href]', [':href' => $href]); - $this->assertTrue(isset($links[0]), SafeMarkup::format('Link to href %href found.', ['%href' => $href])); + $this->assertTrue(isset($links[0]), new FormattableMarkup('Link to href %href found.', ['%href' => $href])); $cache_tags_header = $this->drupalGetHeader('X-Drupal-Cache-Tags'); $cache_tags = explode(' ', $cache_tags_header); $this->assertTrue(in_array('aggregator_feed:' . $feed->id(), $cache_tags));