Closed (outdated)
Project:
Drupal core
Version:
9.3.x-dev
Component:
other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2018 at 21:08 UTC
Updated:
30 Sep 2021 at 16:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
neclimdulIf we do go with option 2 we should add tests because clearly there is no coverage currently. Option 1 doesn't need any additional testing, we're just removing dead code.
Comment #3
neclimdulIssue where code was added for reference.
Comment #4
andypost+1 to option2
Comment #5
neclimdulI'm partial to 1 as the code isn't being used indicating a lack of interest and code that doesn't exist doesn't have bugs but which ever.
Comment #6
mile23PublicStream::basePath()says this:That looks reasonable, because these are a bunch of interdependent services that could be in use outside core.
So it's the same problem as #2536012: The app.root and site.path services are invalid which is that
\SplStringshouldn't be a thing we use. I couldn't find an issue for site.path to go along with app.root, so I'm adding site.path to that issue. Whatever's decided over there will inform what to do here since this code consumes the service.Comment #7
neclimdul"That looks reasonable"
I think you wrote it so that makes sense. ;) The point I was trying to make is ATM that's not a real use case.
2 votes though so here's option 2 with tests. Bonus fact, we had not unit tests for this so more tests!
Comment #9
mile23Yah I guess it's sort of retroactive self-RTBC. :-)
The fail says:
Switch to kernel test.
Ewps.
Comment #10
neclimdulbah, took a quick peak and there's a test adding drupal_valid_test_ua() so phpunit runner runs clean but testbot doesn't. Will take care of it later today.
Comment #11
neclimdulComment #19
neclimdulDon't think this really matters anymore or would apply after #3074585: [Symfony 5] Replace app.root and site.path string services with container parameters
Comment #20
neclimdulalso #2234479: Deprecate hook_test_* hooks in simpletest made some of these changes. Just going to close.
Comment #21
andypostFollow-up to clean-up