Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/taxonomy/tests/src/Functional/RssTest.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
93 | 93 |
94 // Check that the term is displayed when the RSS feed is viewed. | 94 // Check that the term is displayed when the RSS feed is viewed. |
95 $this->drupalGet('rss.xml'); | 95 $this->drupalGet('rss.xml'); |
96 $test_element = sprintf( | 96 $test_element = sprintf( |
97 '<category %s>%s</category>', | 97 '<category %s>%s</category>', |
98 'domain="' . $term1->url('canonical', ['absolute' => TRUE]) . '"', | 98 'domain="' . $term1->toUrl('canonical', ['absolute' => TRUE])->toString() . '"', |
99 $term1->getName() | 99 $term1->getName() |
100 ); | 100 ); |
101 $this->assertRaw($test_element, 'Term is displayed when viewing the rss feed.'); | 101 $this->assertRaw($test_element, 'Term is displayed when viewing the rss feed.'); |
102 | 102 |
103 // Test that the feed icon exists for the term. | 103 // Test that the feed icon exists for the term. |