From 5d34e379c2c20616f0f3572a811b32d7e2539898 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Wed, 28 Jun 2023 23:33:33 +0200 Subject: [PATCH] return userId always --- tests/acceptance/features/bootstrap/GraphContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/bootstrap/GraphContext.php b/tests/acceptance/features/bootstrap/GraphContext.php index 6e987541236..acadf6010e5 100644 --- a/tests/acceptance/features/bootstrap/GraphContext.php +++ b/tests/acceptance/features/bootstrap/GraphContext.php @@ -2416,7 +2416,7 @@ public function userTriesToExportGdprReportOfAnotherUserUsingGraphApi(string $us * @throws GuzzleException */ public function getAssignedRole(string $user) { - $userId = $this->featureContext->getAttributeOfCreatedUser($user, 'id') ?? $user; + $userId = $this->featureContext->getAttributeOfCreatedUser($user, 'id') ?? $this->featureContext->getUserIdByUserName($user); return ( GraphHelper::getAssignedRole( $this->featureContext->getBAseUrl(),