Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Aug 2025 at 03:55 UTC
Updated:
27 Aug 2025 at 07:54 UTC
Jump to comment: Most recent
Comments
Comment #2
nicxvan commentedComment #5
tanushree gupta commentedI've removed the provided lines
Kindly review
Comment #6
berdirNeeds a phpstan baseline update.
Comment #7
tanushree gupta commentedWe've removed the `file_uri_scheme()` mock from the test as requested. After doing that, the test is now throwing a 500 error — likely because the function isn't available in the test context anymore.
We've updated the PHPStan baseline to reflect the current state.
Just wanted to check how you'd prefer we handle this:
* Should we include the required `file.inc` file manually in the test (using something like `require_once`)?
* Or would it make more sense to convert this into a `KernelTestBase` or another test type where the function is already available?
* Or is it okay to leave things as they are now with the updated baseline?
Comment #8
berdirfile_uri_scheme() was removed a long time ago. the test fail is unrelated, those tests just sometimes randomly fail. If it doesn't look related to your changes, you can trigger a retest. I did that now.
Comment #9
tanushree gupta commentedThank you!!
Comment #10
smustgrave commentedSeems straight forward enough.
Comment #12
catchCommitted/pushed to 11.x, thanks!
Comment #14
catchComment #15
catch