Skip to content

Commit

Permalink
Review address
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi committed Feb 1, 2024
1 parent f007f53 commit c8193a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/TestHelpers/GraphHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,7 @@ public static function getSharesSharedWithMe(
* @return ResponseInterface
* @throws GuzzleException
*/
public static function getSharesSharedByAUser(
public static function getSharesSharedByMe(
string $baseUrl,
string $xRequestId,
string $user,
Expand Down
8 changes: 4 additions & 4 deletions tests/acceptance/features/bootstrap/GraphContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2537,7 +2537,7 @@ public function userListsTheResourcesSharedWithThemUsingGraphApi(string $user):
public function userListsTheResourcesSharedByAUserUsingGraphApi(string $user): void {
$credentials = $this->getAdminOrUserCredentials($user);
$this->featureContext->setResponse(
GraphHelper::getSharesSharedByAUser(
GraphHelper::getSharesSharedByMe(
$this->featureContext->getBaseUrl(),
$this->featureContext->getStepLineRef(),
$credentials['username'],
Expand All @@ -2551,15 +2551,15 @@ public function userListsTheResourcesSharedByAUserUsingGraphApi(string $user): v
*
* @param string $shouldOrNot (not| )
* @param string $fileName
* @param PyStringNode|null $schemaString
* @param PyStringNode $schemaString
*
* @return void
* @throws Exception
*/
public function theJsonDataResponseShouldOrNotContainSharedByMeDetails(
string $shouldOrNot,
string $fileName,
?PyStringNode $schemaString = null
PyStringNode $schemaString
): void {
$responseBody = $this->featureContext->getJsonDecodedResponseBodyContent()->value;
$fileOrFolderFound = false;
Expand All @@ -2576,7 +2576,7 @@ public function theJsonDataResponseShouldOrNotContainSharedByMeDetails(
}
Assert::assertFalse(
!$shouldContain && $fileOrFolderFound,
'Response contains file "' . $fileName . '" but should not have.'
'Response contains file "' . $fileName . '" but should.'
);
$this->featureContext->assertJsonDocumentMatchesSchema(
$responseBody,
Expand Down

0 comments on commit c8193a4

Please sign in to comment.