add test for file deletion activity

This commit is contained in:
Salipa-Gurung
2024-08-12 13:04:25 +05:45
parent 2b5144a97d
commit e96bac1e25
2 changed files with 157 additions and 2 deletions
@@ -2797,4 +2797,24 @@ class GraphContext implements Context {
);
$this->featureContext->setResponse($response);
}
/**
* @When user :user lists the activities of space :spaceName using the Graph API
*
* @param string $user
* @param string $spaceName
*
* @return void
*/
public function userListsTheActivitiesInSpaceUsingTheGraphApi(string $user, string $spaceName): void {
$spaceId = ($this->featureContext->spacesContext->getSpaceByName($user, $spaceName))["id"];
$response = GraphHelper::getActivities(
$this->featureContext->getBaseUrl(),
$this->featureContext->getStepLineRef(),
$user,
$this->featureContext->getPasswordForUser($user),
$spaceId
);
$this->featureContext->setResponse($response);
}
}