added test to send share invitation to a deleted group (#8166)

This commit is contained in:
Prajwol Amatya
2024-01-10 13:56:02 +01:00
committed by GitHub
parent 5b165e3209
commit d2635cc4df
2 changed files with 76 additions and 0 deletions
@@ -1079,6 +1079,19 @@ class GraphContext implements Context {
$this->featureContext->setResponse($response);
}
/**
* @Given the administrator has deleted group :group
*
* @param string $group
*
* @return void
*/
public function theAdministratorHasDeletedGroup(string $group): void {
$groupId = $this->featureContext->getAttributeOfCreatedGroup($group, "id");
$response = $this->userDeletesGroupWithGroupId($groupId);
$this->featureContext->theHTTPStatusCodeShouldBe(204, "", $response);
}
/**
* @Then the following users should be listed in the following groups
*