1 system.test public UuidUnitTestCase::testGenerateUuid()

Test generating a UUID.

File

core/modules/system/tests/system.test, line 2659
Tests for system.module.

Class

UuidUnitTestCase
Tests uuid.inc and related functions.

Code

public function testGenerateUuid() {
  $uuid = $this->uuid->generate();
  $this->assertTrue($this->uuid->isValid($uuid), 'UUID generation works.');
}