Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2020 at 07:31 UTC
Updated:
11 Sep 2020 at 09:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hardik_patel_12 commentedKindly review a patch.
Comment #3
hardik_patel_12 commentedComment #4
mondrakeComment #5
longwaveThe patch looks pretty good but there are a number of calls to t() in assertTrue() in core/modules/language/tests/src/Functional/LanguageSwitchingTest.php which can also be removed here.
Comment #6
ravi.shankar commentedWill work on this.
Comment #7
ravi.shankar commentedAddressed comment #5.
Comment #8
longwaveThis should be two separate assertions, maybe considered out of scope but unsure when else we would fix this.
The placeholders need removing, the strings can be directly inserted.
Same here.
And here, etc
The 'File' parameter can be removed entirely as well while we are here.
Comment #9
deepak goyal commentedI am working on this
Comment #10
deepak goyal commentedHi @longwave Made changes as you suggested please review.
Comment #11
longwaveAll these (and more) need unwrapping so they are on a single line.
Comment #12
suresh prabhu parkala commentedPlease review!
Comment #13
paulocsPatch needs re-roll.
I will do it.
Comment #14
paulocsNew patch.
Comment #16
paulocsFixing errors.
Comment #17
longwaveOne more change to go:
Comment #18
suresh prabhu parkala commentedUpdated patch. Please review!
Comment #19
paulocsPatch #18 looks good to me. I did not find any assertTrue() or assertFalse() with a t() call inside.
Cheers, Paulo.
Comment #21
catchThese could change to assertSame(), then we'd be able to remove the assertion message too. Out of scope here but could be done in a follow-up.
Committed 3ab889a and pushed to 9.1.x. Thanks!