Removed the dead drush stub from 'TestDrushDriver' and documented the legacy Drush removal. - #390
Merged
Merged
Conversation
… legacy Drush removal.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request documents the removal of legacy Drush detection and removes obsolete Drush stubbing from the unit-test subclass. ChangesLegacy Drush update
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Code coverage (threshold: 95%) Per-class coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a follow-up to #387, which deleted
DrushDriver's Drush 8 compatibility layer (theisLegacyDrush()probe, theprotected static bool $isLegacyDrushcache, the legacycacheClear()branch, and the--nocolorvs--no-ansifork). Review of that PR flagged two things it left behind: a test double inDrushDriverTest.phpthat only existed to feed the now-deletedtestIsLegacyDrush, and a gap inUPGRADING.mdaround the two removedprotectedmembers, which this project treats as a downstream subclassing surface. This PR removes the dead test stub and adds the missing upgrade-notes entry.Changes
tests/Drupal/Tests/Driver/Unit/DrushDriverTest.php: RemovedTestDrushDriver::$drushOutputand itsdrush()override. Both were added solely to stubdrush()fortestIsLegacyDrush, which remove legacyDrush check #387 already deleted; the remainingtestParseUserIdonly callscallParseUserId(), pure string parsing that never reachesdrush().UPGRADING.md: Added a "DrushDriver no longer detects legacy Drush" entry under the v3 removal notes, documenting thatDrushDriver::isLegacyDrush()andDrushDriver::$isLegacyDrushare gone, and thatdrushResult(),cacheClear(), andbootstrap()now run their previously-conditional Drush 9+ behaviour unconditionally.Before / After
Summary by CodeRabbit