added test for getting details of a single group (#5760)
addressed reviews updated steps with JSON drill-down functionality reviews addressed fixed linter error conflicts resolved fixed errors addressed reviews
This commit is contained in:
@@ -2081,4 +2081,26 @@ class GraphContext implements Context {
|
||||
. "\nExpected rolId for role '$role'' to be '" . $this->appEntity["appRoles"][$role] . "' but got '" . $response['appRoleId'] . "'"
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When user :user gets details of the group :groupName using the Graph API
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $groupName
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function userGetsDetailsOfTheGroupUsingTheGraphApi(string $user, string $groupName): void {
|
||||
$credentials = $this->getAdminOrUserCredentials($user);
|
||||
|
||||
$this->featureContext->setResponse(
|
||||
GraphHelper::getGroup(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
$credentials["username"],
|
||||
$credentials["password"],
|
||||
$groupName
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user