Skip to content
Snippets Groups Projects
Unverified Commit ee0772be authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3092571 by dww, Lendude: Fix RSS test view (and related tests) to not...

Issue #3092571 by dww, Lendude: Fix RSS test view (and related tests) to not put links in the title element
parent f2469de9
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@ display:
hide_empty: false
id: title
label: ''
type: string
settings:
link_to_entity: false
table: node_field_data
plugin_id: field
entity_type: node
......
......@@ -67,8 +67,8 @@ public function testFeedOutput() {
$this->config('system.site')->set('name', $site_name)->save();
$this->drupalGet('test-feed-display.xml');
$this->assertEquals($site_name, $this->getSession()->getDriver()->getText('//title'));
$this->assertEquals($frontpage_url, $this->getSession()->getDriver()->getText('//link'));
$this->assertEquals($site_name, $this->getSession()->getDriver()->getText('//channel/title'));
$this->assertEquals($frontpage_url, $this->getSession()->getDriver()->getText('//channel/link'));
$this->assertEquals('Copyright 2019 Dries Buytaert', $this->getSession()->getDriver()->getText('//channel/copyright'));
$this->assertEquals($node_title, $this->getSession()->getDriver()->getText('//item/title'));
$this->assertEquals($node_link, $this->getSession()->getDriver()->getText('//item/link'));
......@@ -81,7 +81,7 @@ public function testFeedOutput() {
$view->save();
$this->drupalGet('test-feed-display.xml');
$this->assertEquals('test_display_feed', $this->getSession()->getDriver()->getText('//title'));
$this->assertEquals('test_display_feed', $this->getSession()->getDriver()->getText('//channel/title'));
// Add a block display and attach the feed.
$view->getExecutable()->newDisplay('block', NULL, 'test');
......@@ -125,7 +125,7 @@ public function testFeedFieldOutput() {
$node_link = $node->toUrl()->setAbsolute()->toString();
$this->drupalGet('test-feed-display-fields.xml');
$this->assertEquals($node_title, $this->getSession()->getDriver()->getText('//title/a'));
$this->assertEquals($node_title, $this->getSession()->getDriver()->getText('//item/title'));
$this->assertEquals($node_link, $this->getSession()->getDriver()->getText('//item/link'));
// Verify HTML is properly escaped in the description field.
$this->assertRaw('<p>A paragraph</p>');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment