summaryrefslogtreecommitdiffstats
path: root/core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php')
-rw-r--r--core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php
index 97b3b25..c0768a2 100644
--- a/core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php
+++ b/core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php
@@ -74,5 +74,9 @@ class NodeRSSContentTest extends NodeTestBase {
$this->drupalGet("node/$node->nid");
$this->assertNoText($rss_only_content, t('Node content designed for RSS doesn\'t appear when viewing node.'));
+ // Check that the node feed page does not try to interpret additional path
+ // components as arguments for node_feed() and returns default content.
+ $this->drupalGet('rss.xml/' . $this->randomName() . '/' . $this->randomName());
+ $this->assertText($rss_only_content, t('Ignore page arguments when delivering rss.xml.'));
}
}