From 681ed49dc479793dd935b7d8de3ad5b3575f7057 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Fri, 26 Sep 2025 16:27:37 +0200 Subject: [PATCH] deleting user by userId in test --- tests/acceptance/bootstrap/GraphContext.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/bootstrap/GraphContext.php b/tests/acceptance/bootstrap/GraphContext.php index 70f03de856..96806213d1 100644 --- a/tests/acceptance/bootstrap/GraphContext.php +++ b/tests/acceptance/bootstrap/GraphContext.php @@ -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 ); }