Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
transliteration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Nov 2018 at 20:31 UTC
Updated:
28 Jan 2019 at 11:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
krzysztof domańskiComment #3
krzysztof domańskiWhy removed? Because the same is added (irrelevant difference 5 => 17):
Comment #4
krzysztof domańskiUpdate issue summary.
Comment #5
Anonymous (not verified) commentedComment #6
alexpottNice work!
There's one more thing to do in this refactor... we can make the provider use array keys instead of comments - this makes the PHPUnit descriptions much better when running the tests.
Comment #7
krzysztof domańskiAdds array keys instead of comments.
Comment #8
alexpottHere's the new return... easier to review than a diff...
This shows not all tests have keys... I think we should fix that here. Also if the comments are duplicates then imo they are not useful.
Comment #9
alexpottAlso need to fix the coding standards... you can run these locally doing something like
$ composer run phpcs -- core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.phpComment #10
krzysztof domański@alexpott thanks for the feedback.
The coding standards have been fixed and unnecessary comments removed. All tests have keys now.
Comment #11
krzysztof domańskiThe patch won't apply in previous dev version. That is because #2895315: Danish characters are not translated correctly with transliteration was pushed only to 8.7.x. Both versions have a slight but significant difference:
It requires here an additional patch for 8.6.x-dev.
Comment #12
Anonymous (not verified) commentedComment #13
alexpottThe original is in my opinion correct here - it is a
3-byte character3-byte
4-byte
5-byte
2-byte
Comment #14
krzysztof domańskiOnly grammatical correction so back to RTBC. Another patch for 8.6.x-dev has also been added.
Comment #15
larowlanout of scope?
Can you upload a patch without the changes to the indentation and wrapping as its very hard to see what has actually changed here?
Comment #16
krzysztof domańskiI have no idea how to do it easy.
Comment #17
krzysztof domańskiNew patch only with significant changes needed by #3000630: Transliteration causes 2 capital letters at the beginning of a word.
Notice: This patch (in contrast to the previous ones) will be applied without problem in 8.6.x-dev.
Comment #18
Anonymous (not verified) commentedLooks good!
Comment #19
alexpottCommitted and pushed a09ce7750a to 8.7.x and 94bfb9e5db to 8.6.x. Thanks!
Can we get a follow-up to add the array keys in again now it will be simpler to review. They will be helpful.
Comment #22
krzysztof domańskiAll tests have keys now. No change in asserts and they have the same order.
It requires here an additional patch for 8.6.x-dev. Why? #11
Comment #23
alexpott@Krzysztof Domański please file a new issue. We have one commit per issue. I should have been more explicit that "Can we get a follow-up" means create a new issue. Sorry.
Comment #24
krzysztof domański#3025727: Using a data provider with array keys instead of comments in PhpTransliterationTest.