Skip to content

Commit

Permalink
add tests to check activites of space after updating public share link
Browse files Browse the repository at this point in the history
Signed-off-by: prashant-gurung899 <[email protected]>
  • Loading branch information
prashant-gurung899 committed Sep 26, 2024
1 parent a39c38f commit 3d46662
Show file tree
Hide file tree
Showing 2 changed files with 696 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/acceptance/bootstrap/GraphContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2891,6 +2891,28 @@ public function userListsTheActivitiesOfSpaceUsingTheGraphApi(string $user, stri
$this->featureContext->setResponse($response);
}

/**
* @When the public tries to check the activities of space :spaceName of user :user with password :password"
*
* @param string $spaceName
* @param string $user
* @param string $password
*
* @return void
*/
public function thePublicTriesToCheckTheActivitiesOfSpaceWithPassword(string $spaceName, string $user, string $password): void {
$spaceId = ($this->featureContext->spacesContext->getSpaceByName($user, $spaceName))["id"];
$password = $this->featureContext->getActualPassword($password);
$response = GraphHelper::getActivities(
$this->featureContext->getBaseUrl(),
$this->featureContext->getStepLineRef(),
"public",
$password,
$spaceId
);
$this->featureContext->setResponse($response);
}

/**
* @When /^user "([^"]*)" lists the activities of (?:folder|file) "([^"]*)" from space "([^"]*)" with (depth|limit) "([^"]*)" using the Graph API/
*
Expand Down
Loading

0 comments on commit 3d46662

Please sign in to comment.