Commit cc6478df authored by Matt Glaman's avatar Matt Glaman

Issue #2242495: Better default User menu link weights

parent 45c1fa72
......@@ -25,7 +25,7 @@ function commerce_kickstart_user_menu_default_menu_links() {
'external' => 0,
'has_children' => 0,
'expanded' => 0,
'weight' => -49,
'weight' => 2,
'customized' => 1,
);
// Exported menu link: menu-user-menu_log-in:user/login
......@@ -43,7 +43,7 @@ function commerce_kickstart_user_menu_default_menu_links() {
'external' => 0,
'has_children' => 0,
'expanded' => 0,
'weight' => -50,
'weight' => 1,
'customized' => 1,
);
// Exported menu link: menu-user-menu_log-out:user/logout
......@@ -61,7 +61,7 @@ function commerce_kickstart_user_menu_default_menu_links() {
'external' => 0,
'has_children' => 0,
'expanded' => 0,
'weight' => -47,
'weight' => 4,
'customized' => 1,
);
// Exported menu link: menu-user-menu_my-account:user
......@@ -80,7 +80,7 @@ function commerce_kickstart_user_menu_default_menu_links() {
'external' => 0,
'has_children' => 0,
'expanded' => 0,
'weight' => -48,
'weight' => 3,
'customized' => 1,
);
// Translatables
......
......@@ -8,3 +8,15 @@ Feature: Features should be in default state
When I am logged in as a user with the "administrator" role
And I go to "/admin/structure/features"
Then I should not see "Conflicts with"
@api
Scenario: I can add links to Menu User Menu without overriding feature
When I am logged in as a user with the "administrator" role
And I go to "admin/structure/menu/manage/menu-user-menu/add"
Then I fill in the following:
| Menu link title | Testing override |
| Path | https://www.drupal.org |
| Weight | -10 |
And I press "Save"
When I am on "/admin/structure/features/commerce_kickstart_user"
Then I should not see "Overridden"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment