delete method

This commit is contained in:
Viktor Scharf
2022-09-08 10:02:53 +02:00
parent 3c235d9920
commit 070818ac99

View File

@@ -476,7 +476,6 @@ class SpacesContext implements Context {
*/
public function cleanDataAfterTests(): void {
$this->deleteAllProjectSpaces();
$this->deleteAllCreatedUsers();
}
/**
@@ -518,29 +517,6 @@ class SpacesContext implements Context {
}
}
/**
* admin deletes created user with their personal space (this happens automatically after deleting users)
*
* @return void
*
* @throws Exception|GuzzleException
*/
public function deleteAllCreatedUsers(): void {
$createdUsers = $this->featureContext->getCreatedUsers();
foreach ($createdUsers as $user) {
$this->featureContext->setResponse(
GraphHelper::deleteUser(
$this->featureContext->getBaseUrl(),
$this->featureContext->getStepLineRef(),
$this->featureContext->getAdminUsername(),
$this->featureContext->getAdminPassword(),
$user['actualUsername']
)
);
}
}
/**
* Send Propfind Request to Url
*