Commit 35598263 authored by alexpott's avatar alexpott

Issue #2251861 by olli, jibran: Add the feed icon back to taxonomy/term/% pages

parent 53fe2049
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
config:
- core.entity_view_mode.node.teaser
module: module:
- node - node
- taxonomy - taxonomy
- user
id: taxonomy_term id: taxonomy_term
label: 'Taxonomy term' label: 'Taxonomy term'
module: taxonomy module: taxonomy
...@@ -236,6 +239,15 @@ display: ...@@ -236,6 +239,15 @@ display:
empty: { } empty: { }
relationships: { } relationships: { }
fields: { } fields: { }
display_extenders: { }
link_url: ''
link_display: page_1
cache_metadata:
contexts:
- 'languages:language_interface'
- url
- 'user.node_grants:view'
cacheable: false
feed_1: feed_1:
id: feed_1 id: feed_1
display_title: Feed display_title: Feed
...@@ -252,7 +264,7 @@ display: ...@@ -252,7 +264,7 @@ display:
offset: 0 offset: 0
path: taxonomy/term/%/feed path: taxonomy/term/%/feed
displays: displays:
page: page page_1: page_1
default: '0' default: '0'
style: style:
type: rss type: rss
...@@ -265,6 +277,13 @@ display: ...@@ -265,6 +277,13 @@ display:
options: options:
relationship: none relationship: none
view_mode: default view_mode: default
display_extenders: { }
cache_metadata:
contexts:
- 'languages:language_interface'
- url
- 'user.node_grants:view'
cacheable: false
page_1: page_1:
id: page_1 id: page_1
display_title: Page display_title: Page
...@@ -275,3 +294,10 @@ display: ...@@ -275,3 +294,10 @@ display:
type: views_query type: views_query
options: { } options: { }
path: taxonomy/term/% path: taxonomy/term/%
display_extenders: { }
cache_metadata:
contexts:
- 'languages:language_interface'
- url
- 'user.node_grants:view'
cacheable: false
...@@ -104,6 +104,10 @@ function testTaxonomyRss() { ...@@ -104,6 +104,10 @@ function testTaxonomyRss() {
); );
$this->assertRaw($test_element, 'Term is displayed when viewing the rss feed.'); $this->assertRaw($test_element, 'Term is displayed when viewing the rss feed.');
// Test that the feed icon exists for the term.
$this->drupalGet("taxonomy/term/{$term1->id()}");
$this->assertLinkByHref("taxonomy/term/{$term1->id()}/feed");
// Test that the feed page exists for the term. // Test that the feed page exists for the term.
$this->drupalGet("taxonomy/term/{$term1->id()}/feed"); $this->drupalGet("taxonomy/term/{$term1->id()}/feed");
$this->assertRaw('<rss version="2.0"', "Feed page is RSS."); $this->assertRaw('<rss version="2.0"', "Feed page is RSS.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment