[test-only] ApiTests. check group in the space request (#5492)

* check response

* fix test
This commit is contained in:
Viktor Scharf
2023-02-07 11:53:14 +01:00
committed by GitHub
parent 9a5714a26f
commit abc1a446ca
3 changed files with 100 additions and 2 deletions
+27
View File
@@ -446,6 +446,33 @@ class GraphHelper {
);
}
/**
* @param string $baseUrl
* @param string $xRequestId
* @param string $adminUser
* @param string $adminPassword
* @param string $groupName
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function getGroup(
string $baseUrl,
string $xRequestId,
string $adminUser,
string $adminPassword,
string $groupName
): ResponseInterface {
$url = self::getFullUrl($baseUrl, 'groups/' . $groupName);
return HttpRequestHelper::get(
$url,
$xRequestId,
$adminUser,
$adminPassword,
self::getRequestHeaders()
);
}
/**
* @param string $baseUrl
* @param string $xRequestId