Problem/Motivation
UserPasswordResetTest uses a data provider, which because it's a functional test, means it installs Drupal twice more than it needs to. We can just use a foreach instead.
Before:
../vendor/bin/phpunit modules/user/tests/src/Functional/UserPasswordResetTest.php
PHPUnit 10.5.26 by Sebastian Bergmann and contributors.
Runtime: PHP 8.3.8
Configuration: /var/www/html/core/phpunit.xml
............ 12 / 12 (100%)
Time: 00:34.405, Memory: 6.00 MB
After:
../vendor/bin/phpunit modules/user/tests/src/Functional/UserPasswordResetTest.php
PHPUnit 10.5.26 by Sebastian Bergmann and contributors.
Runtime: PHP 8.3.8
Configuration: /var/www/html/core/phpunit.xml
.......... 10 / 10 (100%)
Time: 00:28.516, Memory: 6.00 MB
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #3
catchComment #4
smustgrave commentedSeems straight forward. Appears most changes were lines just shifting
Comment #5
nicxvan commentedComment #8
nod_Committed and pushed a6f5d7d3ae to 11.x and 775c7267e9 to 11.0.x and b8de1821d5 to 10.4.x and 387e4e94b3 to 10.3.x. Thanks!