\Drupal\Tests\system\Kernel\MenuAccessControlHandlerTest::testAccessProvider

Created on 16 January 2025, 8 months ago

Problem/Motivation

\Drupal\Tests\system\Kernel\MenuAccessControlHandlerTest::testAccessProvider is incorrectly named. This is a data provider but because it starts with test it is run as a test as too.

Steps to reproduce

Run ./vendor/bin/phpunit core/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php --testdox

See:

PHPUnit 10.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.3.14
Configuration: /Volumes/dev/sites/drupal8alt.dev/phpunit.xml

.....                                                               5 / 5 (100%)

Time: 00:06.128, Memory: 12.00 MB

Menu Access Control Handler (Drupal\Tests\system\Kernel\MenuAccessControlHandler)
 โœ” Access with noยทpermissionยท+ยทunlocked
 โœ” Access with noยทpermissionยท+ยทlocked
 โœ” Access with adminยท+ยทunlocked
 โœ” Access with adminยท+ยทlocked
 โœ” Access provider

Proposed resolution

Can the data provider name.

Remaining tasks

User interface changes

None

Introduced terminology

None

API changes

None

Data model changes

None

Release notes snippet

None

๐Ÿ› Bug report
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component

phpunit

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024