From ef787bbd78f01b7b14d8cc3546e62016b1e40a90 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 6 Dec 2020 15:26:20 -0800 Subject: [PATCH] Update DeleteSubuserTest.php --- .../Api/Client/Server/Subuser/DeleteSubuserTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Integration/Api/Client/Server/Subuser/DeleteSubuserTest.php b/tests/Integration/Api/Client/Server/Subuser/DeleteSubuserTest.php index 144db42d4..5810c73b4 100644 --- a/tests/Integration/Api/Client/Server/Subuser/DeleteSubuserTest.php +++ b/tests/Integration/Api/Client/Server/Subuser/DeleteSubuserTest.php @@ -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(); }