From 869d8aba6f57c9e3ee0fb55db2d03cc9fad31c2c Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Wed, 7 Sep 2022 17:11:34 +0200 Subject: [PATCH] use id to delete project spaces --- .../features/bootstrap/SpacesContext.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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"] + ) + ); } }