Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In core/modules/help_topics/tests/src/Unit/HelpTopicTwigLoaderTest.php, $source
variable never used.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff-2-4.txt | 634 bytes | Hardik_Patel_12 |
#4 | 3164965-4.patch | 851 bytes | Hardik_Patel_12 |
Comments
Comment #2
shetpooja04 CreditAttribution: shetpooja04 at QED42 commentedCommit ID: 5691efb0 Link: https://git.drupalcode.org/project/drupal/-/commit/5691efb09bde15442d3754b5c54fdac7a593ca3d
For Issue: https://www.drupal.org/project/drupal/issues/3069109 #7 the changes were made
File: core/modules/help_topics/tests/src/Unit/HelpTopicTwigLoaderTest.php
$source is never getting used in testGetSourceContextException()
Comment #4
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 for Drupal India Association commentedWe can remove just $source variable instead of removing getSourceContext function, kindly review.
Comment #5
jijojoseph_zyxware CreditAttribution: jijojoseph_zyxware as a volunteer and at Zyxware Technologies commentedI have reviewed the Patch #4. $source is never getting used. It is working fine without this variable.
@Hardik_Patel_12 Thanks for your patch.
RTBC!!!!!
Comment #7
thallesChanging to RTBC!
Comment #8
catchCommitted 9e546b3 and pushed to 9.1.x. Thanks!
Comment #10
jijojoseph_zyxware CreditAttribution: jijojoseph_zyxware as a volunteer and at Zyxware Technologies commentedThanks!!! @catch