Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Oct 2025 at 20:36 UTC
Updated:
11 Mar 2026 at 11:30 UTC
Jump to comment: Most recent
Comments
Comment #3
mondrakeComment #5
mondrakeComment #6
mondrakeComment #7
mondrakeComment #8
mondrakeComment #9
mondrakeComment #10
dcam commentedI did my best to review the MR. I checked for lingering references to removed classes and ensured there's no dead code that was only being used by the removed classes. I didn't find anything wrong. Since this mostly consists of complete file deletions there isn't much to say about it. This looks good to me.
Comment #11
mondrakeMmm we probably need to keep the functional test about deprecation during drupalGet, because that checks some bubbling mechanism that is Drupal’s. On it.
Comment #12
mondrakeMoved
PhpUnitBridgeTest::testErrorOnSiteUnderTest()toBrowserTestBaseTest::testDeprecationTriggeredInSystemUnderTest()so we can still remove the entire test class.Comment #13
dcam commentedThe moved test was copied faithfully from its original location. It now includes extra comments in its docblock to explain the purpose of the test, so thank you for doing that. The update to the
TestHttpClientMiddlewarecomment is appropriate, especially considering that the referenced function no longer exists.Comment #14
andypostpipeline failed, moreover I got random test failure of
core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.phpand looks a workaround to exclude<directory>../sites/simpletest</directory>Ref https://git.drupalcode.org/issue/drupal-3569133/-/jobs/8606742
Comment #15
mondrake#14 I rerun the failing jobs and now it’s all green, likely random fails again.
This MR removes the test you indicate, so not sure what’s going on here @andypost
Comment #16
andypostonce again https://git.drupalcode.org/issue/drupal-3569133/-/jobs/8607607
Comment #17
andypostI mean this test is flaky so ++ to removal, but MR needs rebase
Comment #20
longwaveRebase wasn't needed, MR cleanly applies to both branches. Thanks for cleaning this up!
Committed and pushed bd810962c6b to main and 94bbf4694c8 to 11.x. Thanks!
Comment #23
andypost@mondrake the same error randomly happens but now in other method https://git.drupalcode.org/issue/drupal-3560672/-/jobs/8643277
Comment #24
andypost@mondrake the same error randomly happens but now in other method https://git.drupalcode.org/issue/drupal-3560672/-/jobs/8643277
Comment #25
mondrake@andypost it looks like an attempt to install a deprecated module triggers the deprecation error, it's captured by our handler, it's handed over to PHPUnit, and fails there but not clear why. I think I saw this error independently from the changes here, lately. Is there a separate 'random test failure' issue for this?
Comment #26
andypostI found no issue but yep, I'm facing it each time with deprecations of modules or removal of deprecated modules