mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 12:19:37 -06:00
[test-only] add test to filter or (#5771)
* add test to filter or * lint
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user