Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Task to convert Uuid/UuidUnitTest.php
to phpunit.
Comment | File | Size | Author |
---|---|---|---|
#1 | system-uuid-phpunit-2003762-01.patch | 3.18 KB | jhedstrom |
Comments
Comment #1
jhedstromThere is a bit of a complication here as the phpunit
assertTrue
uses strict type matching, while the old simpletest did not. Uuid'sisValid()
method returnspreg_match()
which doesn't actually return boolean, but integers. I resolved this by casting the return to boolean, but this may be preferable to fix elsewhere, or switch to usingassertEquals()
in the test.Comment #3
ParisLiakos CreditAttribution: ParisLiakos commentedthis is being taken care here:
#1969572: Make Uuid a service
Comment #4
jhedstrom