diff --git a/core/modules/shortcut/src/Tests/ShortcutLinksTest.php b/core/modules/shortcut/src/Tests/ShortcutLinksTest.php index 52ec545..3c3110d 100644 --- a/core/modules/shortcut/src/Tests/ShortcutLinksTest.php +++ b/core/modules/shortcut/src/Tests/ShortcutLinksTest.php @@ -153,6 +153,15 @@ public function testShortcutQuickLink() { // works here. $link = $this->xpath('//a[normalize-space()=:label]', array(':label' => 'Add to Default shortcuts')); $this->assertTrue(!empty($link), 'Link Add to Default shortcuts found.'); + + //Test two pages which use the same route name but different route parameters + $this->drupalGet('node/add/page'); + //Add Shortcut for Basic Page + $this->clickLink('Add to Default shortcuts'); + $this->assertText('Added a shortcut for Create Basic page.'); + //Assure that Article does not have its shortcut indicated as set + $this->drupalGet('node/add/article'); + $this->assertNoLink('Remove from Default shortcuts','Shortcut quick link set for path without shortcut'); } /**