Task to convert Uuid/UuidUnitTest.php to phpunit.

See #1938068: Convert UnitTestBase to PHPUnit.

CommentFileSizeAuthor
#1 system-uuid-phpunit-2003762-01.patch3.18 KBjhedstrom
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhedstrom’s picture

Status: Active » Needs review
FileSize
3.18 KB

There is a bit of a complication here as the phpunit assertTrue uses strict type matching, while the old simpletest did not. Uuid's isValid() method returns preg_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 using assertEquals() in the test.

Status: Needs review » Needs work

The last submitted patch, system-uuid-phpunit-2003762-01.patch, failed testing.

ParisLiakos’s picture

Status: Needs work » Closed (duplicate)

this is being taken care here:
#1969572: Make Uuid a service

jhedstrom’s picture