diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php index 6fc7c1c..9067e84 100644 --- a/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php @@ -376,7 +376,7 @@ protected function getLocalTasksForRouteResult($mock_plugin) { */ protected function getLocalTasksCache() { $local_task_fixtures = $this->getLocalTaskFixtures(); - return array( + $local_tasks = array( 'base_routes' => array( 'menu_local_task_test_tasks_view' => 'menu_local_task_test_tasks_view', ), @@ -396,6 +396,12 @@ protected function getLocalTasksCache() { ), ), ); + $local_tasks['children']['> menu_local_task_test_tasks_view']['menu_local_task_test_tasks_settings']['weight'] = 0; + $local_tasks['children']['> menu_local_task_test_tasks_view']['menu_local_task_test_tasks_edit']['weight'] = 20 + 1e-6; + $local_tasks['children']['> menu_local_task_test_tasks_view']['menu_local_task_test_tasks_view.tab']['weight'] = 2e-6; + $local_tasks['children']['menu_local_task_test_tasks_view.tab']['menu_local_task_test_tasks_view_child1']['weight'] = 3e-6; + $local_tasks['children']['menu_local_task_test_tasks_view.tab']['menu_local_task_test_tasks_view_child2']['weight'] = 4e-6; + return $local_tasks; } }