Closed (fixed)
Project:
Drupal core
Version:
10.1.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Feb 2023 at 11:37 UTC
Updated:
23 May 2023 at 11:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
longwaveComment #3
longwaveComment #4
mondrakeFTR, I'm not sure what is the eventual situation for this: https://github.com/sebastianbergmann/phpunit/issues/4775.
Need to check if there are remaining
setMethods()calls in core, I'm not sure an automated deprecation error is fired here.Comment #6
mondrakeWorking on this.
Comment #8
mondrakeConverted PHPUnit warnings to deprecations and ignored them.
Comment #9
larowlanThis is critical because our ::upgradePHPUnit script is failing on 9.5.x as it installs 9.6
See https://www.drupal.org/pift-ci-job/2585008
Comment #10
larowlanAlthough, we may choose to open a separate issue to prevent the composer script going all the way to 9.6 to avoid needing to make changes to 9.4/9.5
Comment #11
daffie commentedChanging the status to needs work for the requested comment on the DiffOpTest
Comment #12
alexpottI've created #3339854: Add conflict on PHPUnit ^9.6 to Drupal 9 to fix 9.5 - so that we can take our time here to get this one right.
Comment #13
larowlanDropping priority back
Comment #14
mondrakeRerolled
Comment #15
mondrakeI think we should try and do this before 10.1, silencing deprections or warnings and/or workarounds but at least not to remain too much behind in the release train. Keep changes to a minimum.
In any case I think we already have issues open for most if not all the individual changes that will be needed for PHPUnit 10, and the MR in #3217904: [meta] Support PHPUnit 10 in Drupal 11 can be used to identify what is missing regardless of whatever we silence or skip in the meantime.
Comment #16
mondrakeComment #17
mondrakeComment #18
longwaveThanks - this seems the pragmatic thing to do for now to get us on to PHPUnit 9.6, and then we fix the deprecation skips in followup issues.
Is it worth backporting the deprecation skips to allow this upgrade on 10.0 and even 9.5?
Comment #19
catchNeeds a rebase.
Comment #20
longwaveMR!3386 applies to 10.1.x for me with no issues.
Comment #22
catchOK that is weird now it's fine for me too, must be PEBKAC.
Committed fa3c3ee and pushed to 10.1.x. Thanks!
Comment #23
longwaveComment #25
jonathan1055 commentedCould this commit be the cause of #3358927: SchedulerRulesEventsTest fail with "Indirect modification of overloaded property ... has no effect"? The tests were all passing 27 April, failed 8 May. D10.1 and php8.1 on both, no code changes. The only difference I can see is this PHPunit upgrade from 9.5.28 to 9.6.7