Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Since we'll have PHP 8 as minimum in D10, we no longer need to have the PHPUnit 8 version in the lock file. We can just pin PHPUnit 9.5 and avoid doing the upgrade dance at test runtime.
Proposed resolution
Just doing the lock update in this issue, all the compatibility/upgrade code left untouched for the moment.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#16 | 3252010-16.patch | 61.67 KB | longwave |
| |||
#11 | 3252010-11.patch | 62.1 KB | paulocs |
| |||
#11 | interdiff-10-11.txt | 1.58 KB | paulocs |
#10 | 3252010-10.patch | 63.77 KB | paulocs |
#2 | 3252010-2.patch | 62.25 KB | mondrake |
|
Comments
Comment #2
mondrakePatch, obtained by running
and moving manually
phpspec/prophecy-phpunit
to the require-dev section.Comment #4
mondrakeFailures are consistent with current HEAD
Comment #5
longwaveOut of scope but I guess it will happen sooner or later anyway.
We are in no real hurry to do this on its own that I know of, maybe we should remove the PHPUnit 8 shims in this issue too?
Comment #6
mondrakeGiven in the parent there are plans to bump to Twig 3, I think it’s irrelevant here.
Re removing shims, I read somewhere that’s for after dependecies bumping.
Comment #7
longwaveOK, RTBC once #3251891: Drupal 10 branch failures lands.
I thought about removing this from composer.json as well, but that's a similar shim that we can decide the fate of later:
Comment #8
mondrake#7 IMO we’ll need that for when PHPUnit 10 will release
Comment #9
longwaveRTBC assuming tests pass.
Opened #3252257: Remove PHPUnit 8 support as a followup.
Comment #10
paulocsPatch #2 does not apply any more.
Attaching a re-row.
Comment #11
paulocsHere is the correct patch.
Comment #13
SpokjeRTBC for patch #11
Comment #14
catchNeeds a re-roll.
Comment #15
longwaveComment #16
longwaveSmaller patch that only includes PHPUnit's actual dependencies
Comment #17
mondrakeback to rtbc
Comment #19
catchSo we're already using this, just via the upgrade script instead of locked. Agreed with keeping the scripts in for the next phpunit update where we may need to do the same thing as in 9.x.
Committed bf3114c and pushed to 10.0.x. Thanks!
Comment #20
mondrakeComment #21
longwave