diff options
author | David Rothstein <drothstein@gmail.com> | 2015-10-10 19:52:22 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-10-10 19:52:22 -0400 |
commit | f7548361a664b6cb2fffc4e23a2a1a6620addd80 (patch) | |
tree | 04220dc506c80ff92525742dce9c501b147eede8 /modules/menu | |
parent | d488eb129f4d65334ed999d12012ea8380992248 (diff) | |
download | brdo-f7548361a664b6cb2fffc4e23a2a1a6620addd80.tar.gz brdo-f7548361a664b6cb2fffc4e23a2a1a6620addd80.tar.bz2 |
Issue #1973262 by cilefen, Matt V., David_Rothstein, Anybody, Rob230: User pages display incorrect title instead of "Menu link title" when link paths are added to a default menus
Diffstat (limited to 'modules/menu')
-rw-r--r-- | modules/menu/menu.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/menu/menu.test b/modules/menu/menu.test index a9bdb5f27..8e69efe55 100644 --- a/modules/menu/menu.test +++ b/modules/menu/menu.test @@ -72,6 +72,17 @@ class MenuTestCase extends DrupalWebTestCase { $saved_item = menu_link_load($item['mlid']); $this->assertEqual($description, $saved_item['options']['attributes']['title'], 'Saving an existing link updates the description (title attribute)'); $this->resetMenuLink($item, $old_title); + + // Test that the page title is correct when a local task appears in a + // top-level menu item. See https://www.drupal.org/node/1973262. + $item = $this->addMenuLink(0, 'user/register', 'user-menu'); + $this->drupalGet('user/password'); + $this->assertNoTitle('Home | Drupal'); + $this->drupalLogout(); + $this->drupalGet('user/register'); + $this->assertTitle($item['link_title'] . ' | Drupal'); + $this->drupalGet('user'); + $this->assertNoTitle('Home | Drupal'); } /** |