When #1842718: Use new Transliteration functionality in core for machine names landed we still had the unicode string functions in procedural code. Now that #1938670: Convert unicode.inc to \Drupal\Component\Utility\Unicode has landed we can convert this test to PHPUnit.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | machinename-phpunit-1991078-5.patch | 2.08 KB | mile23 |
| #1 | 1991078-machinename-PHPunit.1.patch | 7.2 KB | alexpott |
Comments
Comment #1
alexpottAnd now for a patch...
Comment #2
ParisLiakos commentedIsn't this a lot more awesome with data providers?:)
Yay for the first phpunit test of system module!
Comment #3
dries commentedCommitted to 8.x. Thanks.
Comment #5
mile23Updated for 100% code coverage.
Comment #6
dawehnerWouldn't it be better to mock this dependency instead? Then we can check that it is just called once. Additional your current approach kind of tests the functionality of the transliteration as well, and this is not needed.
Comment #7
ParisLiakos commentedthis is more or less hijacking an issue. please open a new one, thanks
Comment #8
jhedstrom