- Issue created by @longwave
- ๐ณ๐ฟNew Zealand quietone
Tagging for coding standards and moving to the 'other' component where such issues live.
- Status changed to Active
almost 2 years ago 2:54pm 7 February 2023 - ๐ฌ๐งUnited Kingdom longwave UK
๐ Strip HTML tags when using assertEquals() to compare markup Fixed landed, so this can be worked on now.
- Assigned to gxleano
- Issue was unassigned.
- ๐ณ๐ฟNew Zealand quietone
Looks like @gxleano got busy with other things.
Un-assigning per Assigning ownership of a Drupal core issue โ .
- ๐ณ๐ฟNew Zealand quietone
Updated the IS and started a patch for this. There is no need to run the whole test suit, so I am not running the tests.
I think this is a suitable new issue, so adding the novice tag. If anyone needs help Join #coding-standards in Drupal slack.
- last update
over 1 year ago 29,944 pass, 1 fail - ๐ฎ๐ณIndia indrapatil Bangalore
Hi, I worked on the files which are listed in the remove_t_list.txt file. Please let me know if this is correct.
In this other than assertEquals() it has all the t() functions listed.Please guide me if anything needs to be done.
- First commit to issue fork.
- Merge request !5735Issue #3337295: Remove remaining uses of t() in assertEquals() calls โ (Open) created by rksyravi
- Status changed to Needs review
about 1 year ago 7:29am 8 December 2023 - Status changed to Needs work
about 1 year ago 12:52pm 8 December 2023 - ๐บ๐ธUnited States smustgrave
failures in the MR.
Also see that we are removing t() from translation tests, don't think we want to remove those.
- last update
about 1 year ago Custom Commands Failed - ๐ฎ๐ณIndia chandansha
Chandansha โ changed the visibility of the branch 3337295-remove-remaining-uses to hidden.
- ๐ฎ๐ณIndia chandansha
Chandansha โ changed the visibility of the branch 3337295-remove-remaining-uses to active.
- First commit to issue fork.
- Status changed to Needs review
about 1 year ago 6:32am 16 December 2023 - Status changed to Needs work
about 1 year ago 10:06pm 16 December 2023 - ๐ธ๐ฐSlovakia poker10
Thanks for working on this. The tests failes on the MR, so moving to Needs Work, see: https://git.drupalcode.org/project/drupal/-/merge_requests/5735/pipelines
There are coding standards issues and I think we are still removing too much
t()
usages - the title suggest that we should only remove "uses oft()
inassertEquals()
calls" (if the title is incorrect, we need to update the title). Thanks! - ๐ฌ๐งUnited Kingdom longwave UK
This issue should be scoped as per the title. See the parent issue for other removals of this function.
- ๐ฎ๐ณIndia Akhil Babu Chengannur
Akhil Babu โ made their first commit to this issueโs fork.
- Merge request !5862Issues/3337295: Remove remaining uses of t() in assertEquals() calls. โ (Open) created by Akhil Babu
- Status changed to Needs review
about 1 year ago 1:10pm 18 December 2023 - ๐ฎ๐ณIndia Akhil Babu Chengannur
Updated t() functions in assertEquals() calls. I have raise a new MR 5862.
- Status changed to Needs work
about 1 year ago 2:19pm 19 December 2023 - ๐บ๐ธUnited States smustgrave
core/tests/Drupal/KernelTests/Core/Element/PathElementFormTest.php
Not sure this is testing translation.
- ๐ท๐บRussia zniki.ru
zniki.ru โ made their first commit to this issueโs fork.
- Status changed to Needs review
about 1 year ago 10:19am 20 December 2023 - ๐ท๐บRussia zniki.ru
core/tests/Drupal/KernelTests/Core/Element/PathElementFormTest.php
In this file there is no modules related to translation.
I believe no translation testing happened.
Made changes to MR 5862.find core -type f -iname '*Test.php' | xargs grep '[^a-zA-Z]t(' | grep assertE | awk -F: '{print $1}' | sort -u | nl 1 core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php 2 core/modules/locale/tests/src/Functional/LocaleUpdateTest.php 3 core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php
My bad, didn't notice "novice" tag.
- Status changed to Needs work
about 1 year ago 2:41pm 20 December 2023 - ๐บ๐ธUnited States smustgrave
This actually seemed correct https://git.drupalcode.org/project/drupal/-/merge_requests/5862/diffs?co.... don't think we are testing that the Submit button is translated here.
- Status changed to Needs review
about 1 year ago 2:50pm 20 December 2023 - ๐ท๐บRussia zniki.ru
@smustgrave you are right.
But this issue is about only removing t() in assertEquals().
That's why I remove it from MR. - Status changed to RTBC
about 1 year ago 5:49pm 20 December 2023 -
longwave โ
committed dca79fb0 on 10.2.x
Issue #3337295 by Akhil Babu, zniki.ru, rksyravi, quietone,...
-
longwave โ
committed dca79fb0 on 10.2.x
-
longwave โ
committed d9f34709 on 11.x
Issue #3337295 by Akhil Babu, zniki.ru, rksyravi, quietone,...
-
longwave โ
committed d9f34709 on 11.x
- Status changed to Fixed
about 1 year ago 10:53pm 20 December 2023 - ๐ฌ๐งUnited Kingdom longwave UK
Thanks! This cleans up the remaining uses in
assertEquals()
and makes the tests a little bit easier to read in most cases, leaving only some tests that explicitly test translations.Backported to 10.2.x as a tests-only cleanup.
Committed and pushed d9f34709f9 to 11.x and dca79fb044 to 10.2.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.