From eb4de64f33f506d4ae4e80e134eb5f5dbeac9a71 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Mon, 29 Jul 2024 12:30:05 +0200 Subject: [PATCH] fix after review --- tests/acceptance/features/bootstrap/SharingNgContext.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/acceptance/features/bootstrap/SharingNgContext.php b/tests/acceptance/features/bootstrap/SharingNgContext.php index ec977e1e7d..fe792794e2 100644 --- a/tests/acceptance/features/bootstrap/SharingNgContext.php +++ b/tests/acceptance/features/bootstrap/SharingNgContext.php @@ -1042,7 +1042,7 @@ class SharingNgContext implements Context { * @throws GuzzleException * @throws JsonException */ - public function hideSharedResource(string $sharee, string $shareID, bool $hide = true): ResponseInterface { + public function hideOrUnhideSharedResource(string $sharee, string $shareID, bool $hide = true): ResponseInterface { $shareSpaceId = FeatureContext::SHARES_SPACE_ID; $itemId = $shareSpaceId . '!' . $shareID; $body['@UI.Hidden'] = $hide; @@ -1148,7 +1148,7 @@ class SharingNgContext implements Context { */ public function userHidesTheSharedResourceUsingTheGraphApi(string $user):void { $shareItemId = $this->featureContext->shareNgGetLastCreatedUserGroupShareID(); - $response = $this->hideSharedResource($user, $shareItemId); + $response = $this->hideOrUnhideSharedResource($user, $shareItemId); $this->featureContext->setResponse($response); } @@ -1163,7 +1163,7 @@ class SharingNgContext implements Context { */ public function userHasHiddenTheShare(string $user):void { $shareItemId = $this->featureContext->shareNgGetLastCreatedUserGroupShareID(); - $response = $this->hideSharedResource($user, $shareItemId); + $response = $this->hideOrUnhideSharedResource($user, $shareItemId); $this->featureContext->theHTTPStatusCodeShouldBe(200, '', $response); } @@ -1178,7 +1178,7 @@ class SharingNgContext implements Context { */ public function userUnhidesTheSharedResourceUsingTheGraphApi(string $user):void { $shareItemId = $this->featureContext->shareNgGetLastCreatedUserGroupShareID(); - $response = $this->hideSharedResource($user, $shareItemId, false); + $response = $this->hideOrUnhideSharedResource($user, $shareItemId, false); $this->featureContext->setResponse($response); }