Skip to content

Commit ef787bb

Browse files
committed
Update DeleteSubuserTest.php
1 parent f9ea96f commit ef787bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Integration/Api/Client/Server/Subuser/DeleteSubuserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testCorrectSubuserIsDeletedFromServer()
4444
'permissions' => [Permission::ACTION_WEBSOCKET_CONNECT],
4545
]);
4646

47-
$mock->expects('setServer->revokeJTIs')->with([md5($subuser->id . $server->uuid)])->andReturnUndefined();
47+
$mock->expects('setServer->revokeUserJTI')->with($subuser->id)->andReturnUndefined();
4848

4949
$this->actingAs($user)->deleteJson($this->link($server) . "/users/{$subuser->uuid}")->assertNoContent();
5050

@@ -60,7 +60,7 @@ public function testCorrectSubuserIsDeletedFromServer()
6060
'permissions' => [Permission::ACTION_WEBSOCKET_CONNECT],
6161
]);
6262

63-
$mock->expects('setServer->revokeJTIs')->with([md5($subuser->id . $server->uuid)])->andReturnUndefined();
63+
$mock->expects('setServer->revokeUserJTI')->with($subuser->id)->andReturnUndefined();
6464

6565
$this->actingAs($user)->deleteJson($this->link($server) . "/users/{$subuser->uuid}")->assertNoContent();
6666
}

0 commit comments

Comments
 (0)