diff --git a/tests/acceptance/features/bootstrap/SpacesContext.php b/tests/acceptance/features/bootstrap/SpacesContext.php index f033f3192..f0840b64e 100644 --- a/tests/acceptance/features/bootstrap/SpacesContext.php +++ b/tests/acceptance/features/bootstrap/SpacesContext.php @@ -476,7 +476,6 @@ class SpacesContext implements Context { */ public function cleanDataAfterTests(): void { $this->deleteAllProjectSpaces(); - $this->deleteAllPersonalSpaces(); } /** @@ -518,33 +517,6 @@ class SpacesContext implements Context { } } - /** - * users delete their personal space at the end of the test - * - * @return void - * - * @throws Exception|GuzzleException - */ - public function deleteAllPersonalSpaces(): void { - $query = "\$filter=driveType eq personal"; - $createdUsers = $this->featureContext->getCreatedUsers(); - $userAdmin = $this->featureContext->getAdminUsername(); - - foreach ($createdUsers as $user) { - $this->theUserListsAllHisAvailableSpacesUsingTheGraphApi( - $user["actualUsername"], - $query - ); - $drives = $this->getAvailableSpaces(); - foreach ($drives as $value) { - if (!\array_key_exists("deleted", $value["root"])) { - $this->sendDisableSpaceRequest($userAdmin, $value["name"]); - } - $this->sendDeleteSpaceRequest($userAdmin, $value["name"]); - } - } - } - /** * Send Propfind Request to Url *