deleting user by userId in test

This commit is contained in:
Viktor Scharf
2025-09-26 16:27:37 +02:00
committed by Ralf Haferkamp
parent 098ed082c8
commit 681ed49dc4
+3 -2
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
);
}