You are here

public function UuidUserServicesTest::testUserRetrieve in Universally Unique IDentifier 7

Tests user Retrieve.

File

uuid_services/uuid_services.user_services.test, line 112
Test the UUID User Services integration.

Class

UuidUserServicesTest
Test the UUID User Services integration.

Code

public function testUserRetrieve() {
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer services',
    'administer users',
  ));
  $this
    ->drupalLogin($admin_user);
  $other_user = $this
    ->drupalCreateUser();

  // Verify user is found.
  $response = $this
    ->servicesGet($this->endpoint->path . '/user/' . $other_user->uuid);
  $this
    ->assertTrue($other_user->uuid == $response['body']->uuid, 'Successfully received User info');
}