diff --git a/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutLinksTest.php b/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutLinksTest.php index cbb29db..0fab8b7 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutLinksTest.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutLinksTest.php @@ -17,7 +17,7 @@ class ShortcutLinksTest extends ShortcutTestBase { * * @var array */ - public static $modules = array('router_test'); + public static $modules = array('router_test', 'views'); public static function getInfo() { return array( @@ -119,6 +119,19 @@ function testShortcutLinkChangePath() { } /** + * Tests that changing the route of a shortcut link works. + */ + function testShortcutLinkChangeRoute() { + $this->drupalLogin($this->root_user); + $this->drupalGet('admin/content'); + $this->assertResponse(200); + // Disable the view. + entity_load('view', 'content')->disable()->save(); + $this->drupalGet('admin/content'); + $this->assertResponse(200); + } + + /** * Tests deleting a shortcut link. */ function testShortcutLinkDelete() { @@ -162,4 +175,5 @@ function testNoShortcutLink() { $this->drupalGet('admin/content'); $this->assertRaw('remove-shortcut', 'Remove from shortcuts link was shown on a page the user does have access to.'); } + }