Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
@Samvada_Jain_M There is no need to changes the t() method in tests files. In core we also simply use the t() method. Also if we are not checking any translation in tests then we can avoid the use of t() [meta] Remove usage of t() in tests not testing translation .
Thanks for the work in here. I agree this can be fixed. But it's not actually a bug, it's really an internal code cleanup task. Nothing's broken (not a bug). Nothing new will be possible (not a feature). It's only an improvement in the code (task).
Comments
Comment #2
samvada_jain_m commentedComment #3
samvada_jain_m commentedPlease review!
Comment #5
msutharsComment #6
msuthars@Samvada_Jain_M There is no need to changes the t() method in tests files. In core we also simply use the t() method. Also if we are not checking any translation in tests then we can avoid the use of t() [meta] Remove usage of t() in tests not testing translation .
Comment #7
damienmckennaChanging this to "needs work" as the tests need to be updated per #6.
Comment #8
dwwThanks for the work in here. I agree this can be fixed. But it's not actually a bug, it's really an internal code cleanup task. Nothing's broken (not a bug). Nothing new will be possible (not a feature). It's only an improvement in the code (task).
Thanks,
-Derek
Comment #9
dwwRemoved
t()from tests.Comment #10
dwwHere's a backport to 8.x-1.x branch, since #9 doesn't apply cleanly.
Comment #13
dwwBot is still happy. Committed and pushed to both branches.
Thanks!
-Derek