Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!2612
Issue
#3285529
: UserLocalTask does not check that route exists
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3285529
: UserLocalTask does not check that route exists
issue/drupal-3285529:3285529-inject-route-provider-10.1
into
10.1.x
Overview
0
Commits
6
Pipelines
0
Changes
4
Open
Benji Fisher
requested to merge
issue/drupal-3285529:3285529-inject-route-provider-10.1
into
10.1.x
2 years ago
Overview
0
Commits
6
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Compare
10.1.x
version 1
1a1af11e
2 years ago
10.1.x (HEAD)
and
latest version
latest version
1a1af11e
6 commits,
2 years ago
version 1
1a1af11e
860 commits,
2 years ago
4 files
+
64
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php
+
6
−
0
Options
@@ -3,6 +3,7 @@
namespace
Drupal\Tests\shortcut\Unit\Menu
;
use
Drupal\Core\Entity\EntityTypeManagerInterface
;
use
Drupal\Core\Routing\RouteProviderInterface
;
use
Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase
;
/**
@@ -28,6 +29,11 @@ protected function setUp(): void {
->
method
(
'getDefinitions'
)
->
willReturn
([]);
$this
->
container
->
set
(
'entity_type.manager'
,
$entity_type_manager
);
$route_provider
=
$this
->
createMock
(
RouteProviderInterface
::
class
);
$route_provider
->
expects
(
$this
->
any
())
->
method
(
'getRoutesByNames'
)
->
will
(
$this
->
returnValue
([
'not empty'
]));
$this
->
container
->
set
(
'router.route_provider'
,
$route_provider
);
$this
->
container
->
set
(
'string_translation'
,
$this
->
getStringTranslationStub
());
}
Loading