Skip to content

Commit

Permalink
delete method
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor committed Sep 8, 2022
1 parent 3c235d9 commit 070818a
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/acceptance/features/bootstrap/SpacesContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ public function setUpScenario(BeforeScenarioScope $scope): void {
*/
public function cleanDataAfterTests(): void {
$this->deleteAllProjectSpaces();
$this->deleteAllCreatedUsers();
}

/**
Expand Down Expand Up @@ -518,29 +517,6 @@ public function deleteAllProjectSpaces(): void {
}
}

/**
* 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
*
Expand Down

0 comments on commit 070818a

Please sign in to comment.