deleting user by userId in test

This commit is contained in:
Viktor Scharf
2025-09-26 16:27:37 +02:00
parent b1bc63274f
commit 8288abf63e

View File

@@ -289,12 +289,13 @@ class GraphContext implements Context {
*/
public function adminDeletesUserUsingTheGraphApi(string $user, ?string $byUser = null): ResponseInterface {
$credentials = $this->getAdminOrUserCredentials($byUser);
return GraphHelper::deleteUser(
$userId = $this->featureContext->getAttributeOfCreatedUser($user, 'id');
return GraphHelper::deleteUserByUserId(
$this->featureContext->getBaseUrl(),
$this->featureContext->getStepLineRef(),
$credentials["username"],
$credentials["password"],
$user
$userId
);
}