[test-only] add test to filter or (#5771)

* add test to filter or

* lint
This commit is contained in:
Viktor Scharf
2023-03-10 09:05:00 +01:00
committed by GitHub
parent 8560015c18
commit 94c3df2246
3 changed files with 71 additions and 0 deletions

View File

@@ -1890,6 +1890,28 @@ class GraphContext implements Context {
$this->featureContext->setResponse($response);
}
/**
* @When the user :user gets all users from that are members in the group :firstGroup or the group :secondGroup using the Graph API
*
* @param string $user
* @param string $firstGroup
* @param string $secondGroup
*
* @return void
* @throws GuzzleException
*/
public function userGetsAllUsersOfFirstGroupOderSecondGroupUsingTheGraphApi(string $user, string $firstGroup, string $secondGroup) {
$response = GraphHelper::getUsersFromOneOrOtherGroup(
$this->featureContext->getBaseUrl(),
$this->featureContext->getStepLineRef(),
$user,
$this->featureContext->getPasswordForUser($user),
$firstGroup,
$secondGroup
);
$this->featureContext->setResponse($response);
}
/**
* Get roleId by role name
*