Closed (fixed)
Project:
Drupal core
Version:
10.6.x-dev
Component:
menu_link_content.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Nov 2025 at 13:34 UTC
Updated:
17 Nov 2025 at 17:39 UTC
Jump to comment: Most recent
Comments
Comment #2
tobiasbComment #4
tobiasbComment #5
dcam commentedThis looks good to me. I verified that
MenuLinkContentEntityAccessis currently failing in the PHP 8.5 job, see a test run from another issue I worked on earlier today. The failing test shows that the problem occurs on line 221 ofcore/lib/Drupal/Core/Entity/EntityAccessControlHandler.php. This is whereid()is called. So mockingid()is an appropriate fix. And the fixed test passes in the pipeline here.Comment #6
alexpottAs a test only fix I've backported this to 10.6.x
Committed and pushed ca32fdf4d2e to 11.x and a3c5bcfcdcc to 11.3.x and 7a15b86fd48 to 11.2.x and 13d06af09f2 to 10.6.x. Thanks!