public function UuidTest::testUuidIsUnique in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Uuid/UuidTest.php \Drupal\Tests\Component\Uuid\UuidTest::testUuidIsUnique()
Tests that generated UUIDs are unique.
@dataProvider providerUuidInstances
File
- core/
tests/ Drupal/ Tests/ Component/ Uuid/ UuidTest.php, line 38 - Contains \Drupal\Tests\Component\Uuid\UuidTest.
Class
- UuidTest
- Tests the handling of Universally Unique Identifiers (UUIDs).
Namespace
Drupal\Tests\Component\UuidCode
public function testUuidIsUnique(UuidInterface $instance) {
$this
->assertNotEquals($instance
->generate(), $instance
->generate(), sprintf('Same UUID was not generated twice with %s.', get_class($instance)));
}