You are here

function UUIDFunctionalityTestCase::testEnabledUserUUID in Universally Unique IDentifier 6

Verify uuid behavior for users.

File

./uuid.test, line 551
Functionality tests for UUID module.

Class

UUIDFunctionalityTestCase
Test basic uuid resolver functionality.

Code

function testEnabledUserUUID() {

  // Set module settings.
  $settings = array(
    'uuid_automatic_for_users' => TRUE,
  );
  $this
    ->uuidSettingsSet($settings);

  // Create a user.
  $object = $this
    ->drupalCreateUser();

  // Verify fields are attached to the user.
  $this
    ->assertIsUUID($object->uuid, t("User has uuid field attached with enabled settings."), t("User UUID"));
}