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

Created on 16 January 2025, 6 days 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