diff --git a/tests/acceptance/features/bootstrap/SpacesContext.php b/tests/acceptance/features/bootstrap/SpacesContext.php index 122774f50..f033f3192 100644 --- a/tests/acceptance/features/bootstrap/SpacesContext.php +++ b/tests/acceptance/features/bootstrap/SpacesContext.php @@ -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"] + ) + ); } }