use id to delete project spaces

This commit is contained in:
Michael Barz
2022-09-07 17:11:34 +02:00
parent 3b64dfbd20
commit 869d8aba6f
@@ -498,9 +498,23 @@ class SpacesContext implements Context {
foreach ($drives as $value) {
if (!\array_key_exists("deleted", $value["root"])) {
$this->sendDisableSpaceRequest($userAdmin, $value["name"]);
$this->featureContext->setResponse(
GraphHelper::disableSpace(
$this->featureContext->getBaseUrl(),
$userAdmin,
$this->featureContext->getPasswordForUser($userAdmin),
$value["id"]
)
);
}
$this->sendDeleteSpaceRequest($userAdmin, $value["name"]);
$this->featureContext->setResponse(
GraphHelper::deleteSpace(
$this->featureContext->getBaseUrl(),
$userAdmin,
$this->featureContext->getPasswordForUser($userAdmin),
$value["id"]
)
);
}
}