Update DeleteSubuserTest.php

This commit is contained in:
Dane Everitt 2020-12-06 15:26:20 -08:00
parent f9ea96f45d
commit ef787bbd78
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class DeleteSubuserTest extends ClientApiIntegrationTestCase
'permissions' => [Permission::ACTION_WEBSOCKET_CONNECT],
]);
$mock->expects('setServer->revokeJTIs')->with([md5($subuser->id . $server->uuid)])->andReturnUndefined();
$mock->expects('setServer->revokeUserJTI')->with($subuser->id)->andReturnUndefined();
$this->actingAs($user)->deleteJson($this->link($server) . "/users/{$subuser->uuid}")->assertNoContent();
@ -60,7 +60,7 @@ class DeleteSubuserTest extends ClientApiIntegrationTestCase
'permissions' => [Permission::ACTION_WEBSOCKET_CONNECT],
]);
$mock->expects('setServer->revokeJTIs')->with([md5($subuser->id . $server->uuid)])->andReturnUndefined();
$mock->expects('setServer->revokeUserJTI')->with($subuser->id)->andReturnUndefined();
$this->actingAs($user)->deleteJson($this->link($server) . "/users/{$subuser->uuid}")->assertNoContent();
}