- Issue created by @mondrake
- @mondrake opened merge request.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,202 pass - last update
over 1 year ago 29,202 pass - Issue was unassigned.
- Status changed to RTBC
over 1 year ago 2:44pm 18 April 2023 - 🇺🇸United States smustgrave
This looks very interesting, as I've gotten more into Unit testing vs just functional. Don't mind marking this.
- last update
over 1 year ago 29,283 pass - last update
over 1 year ago 29,291 pass - last update
over 1 year ago 29,302 pass - last update
over 1 year ago 29,304 pass - last update
over 1 year ago 29,343 pass - last update
over 1 year ago 29,366 pass - last update
over 1 year ago 29,366 pass - last update
over 1 year ago 29,371 pass - last update
over 1 year ago 29,378 pass - last update
over 1 year ago 29,379 pass - last update
over 1 year ago 29,380 pass - last update
over 1 year ago 29,383 pass - last update
over 1 year ago 29,388 pass - Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass 58:56 54:12 Running58:56 54:22 Running- last update
over 1 year ago 29,388 pass - Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 29,395 pass - last update
over 1 year ago 29,399 pass - last update
over 1 year ago 29,399 pass - last update
over 1 year ago 29,400 pass - last update
over 1 year ago 29,409 pass - last update
over 1 year ago 29,409 pass - last update
over 1 year ago 29,415 pass - Status changed to Fixed
over 1 year ago 8:38am 7 June 2023 - 🇬🇧United Kingdom catch
This looks good - I wonder if it's something we should try to put into phpstan/rector for 11.x readiness, will ask in slack.
Committed/pushed to 11.x and cherry-picked to 10.1.x, thanks!
- 🇮🇹Italy mondrake 🇮🇹
I wonder if it's something we should try to put into phpstan/rector for 11.x readiness
phpstan/phpstan-unit already checks that... but only if PHPUnit 10 is in use, which does not help much in preparation to adopt PHPUnit 10.
See upstream https://github.com/phpstan/phpstan-phpunit/issues/178
- Status changed to Needs work
over 1 year ago 2:01pm 7 June 2023 - 🇬🇧United Kingdom catch
Spoke to @bbrala and @mglaman in slack a bit about how to communicate this (via phpstan/rector and in general).
We came up with something like - adding a new PHPUnit 10 change record, which we can relate to all of the PHPUnit 10 changes, and then that can include the kinds of changes contrib needs to make.
For example for this issue we could talk about static data providers and
$prophet = new Prophet(); $prophet->prothesize();
instead of$this->prothesize()
- even though it's not Drupal API that we're changing, it'd be a useful cheat sheet for people.Re-opening and marking needs work for that, leaving the commit in.
- Status changed to Needs review
over 1 year ago 5:01pm 7 June 2023 - 🇮🇹Italy mondrake 🇮🇹
Started a draft CR @ https://www.drupal.org/node/3365413 →
- Status changed to Fixed
over 1 year ago 9:49pm 7 June 2023 - Status changed to Needs work
over 1 year ago 2:33am 21 June 2023 - 🇳🇿New Zealand quietone
I am working through the unpublished change records. The title of the CR here is 'PHPUnit 10' which at first I thought meant that PHPUnit 10 was being used, which I also knew was not true. So, to avoid confusion I think the title needs to be changed.
And I read that the CR is intended to be used for multiple issues, which is fine. However, there are several issues for PHPUnit and they will be committed to different versions and there is only one version field. By that, we actually do need multiple CRs. It could be made simple by having one CR per version. But to have all the data in one place, what do you think of having a wiki page for the PHPUnit changes that the individual CRs can point to. The CR's would then be very short. The wiki page could be in PHPUnit in Drupal → .
- Status changed to Fixed
10 months ago 9:54am 5 February 2024 - 🇬🇧United Kingdom catch
I've changed the title to "Changes required for PHPUnit 10 compatibility".
However, there are several issues for PHPUnit and they will be committed to different versions and there is only one version field. By that, we actually do need multiple CRs.
I'm not sure this is necessary. While it's true that there are multiple issues committed to different versions, we're not changing APIs in those issues (or not the vast majority), instead we're just changing individual tests so that they don't use APIs deprecated by PHPUnit. It's useful to document the changes that core had to do to make it easier for contrib when they're doing the same things, but we're not responsible for those API changes ourselves, and we'll only update to PHPUnit 10 in Drupal 11.
Automatically closed - issue fixed for 2 weeks with no activity.