Problem/Motivation
Cleanup of deprecated code for the testing framework.
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3550268
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3550268-d12-remove-deprecated
changes, plain diff MR !13408
Comments
Comment #2
mondrakeComment #4
mondrakeComment #6
mondrakeComment #7
mondrakeBlocker is in.
Comment #8
dcam commentedI found a couple of lingering doc references to deleted functions, but I also noticed what looks like a loss of test coverage. Please let me know if I'm wrong. Setting to Needs Work to take care of these items.
Comment #9
mondrakeThanks for the review! Replied inline.
Comment #10
dcam commentedMy feedback was addressed. LGTM.
Comment #11
mondrakeMaybe I found a way to test that without too much effort. Stay tuned.
Comment #12
mondrakeReintroduced the test + an additional one. In fact there was a bug - TestCase::groups() always return at least one group, so the empty check was moot. Here we are checking explicitly that the group attribute is defined on the test using PHPUnit API.
Comment #13
dcam commentedThe new tests look great. I couldn't find anything to comment on about them. Thank you for taking another look at replacing that deleted test.
Comment #14
mondrakerebased
Comment #15
quietone commentedAdding all deprecated removals to the meta
Comment #16
mondrakerebased a bit robustly - DebugClassLoader deprecations started to get in the way and I added native return types as recommended.
Comment #17
catchNeeds another rebase. There are more additions in here than I expected, e.g. in PhpUnitTestDiscovery, does this mean we didn't complete some deprecations? I think it's probably fine to do it all in one go in this issue though since those classes are very internal.
Comment #18
mondrakeHonestly I never looked at deprecation options when touching the classes that are only used by run-tests.sh or by PHPUnit extensions.
Comment #19
catchStill getting a conflict on
ore/tests/Drupal/Tests/UnitTestCase.phpComment #20
mondrakeMerged with main
Comment #23
catchCommitted/pushed to main, thanks!