mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 21:00:30 -06:00
delete method
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user