You are here

public function UuidUserServicesTest::testUserDelete in Universally Unique IDentifier 7

Tests user Delete.

File

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

Class

UuidUserServicesTest
Test the UUID User Services integration.

Code

public function testUserDelete() {
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer services',
    'administer users',
  ));
  $this
    ->drupalLogin($admin_user);
  $other_user = $this
    ->drupalCreateUser();
  $this
    ->servicesDelete($this->endpoint->path . '/user/' . $other_user->uuid);
  $user_after_update = user_load($other_user->uid, TRUE);
  $this
    ->assertTrue(empty($user_after_update), 'User was deleted');
}