Hardcode header in GraphHelper::deleteSpace

This commit is contained in:
Phil Davis
2022-09-02 16:01:56 +05:45
parent c2e44b17cc
commit 726640882b
2 changed files with 12 additions and 15 deletions
@@ -2334,16 +2334,14 @@ class SpacesContext implements Context {
string $user,
string $spaceName
): void {
$header = ["Purge" => "T"];
$space = $this->getSpaceByName($user, $spaceName);
$this->featureContext->setResponse(
GraphHelper::deleteSpace(
$this->featureContext->getBaseUrl(),
$user,
$this->featureContext->getPasswordForUser($user),
$space["id"],
$header
$space["id"]
)
);
}