Skip to content

Commit

Permalink
updated user disable implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Panta committed Jul 18, 2023
1 parent 80b212b commit 77dee2c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/acceptance/features/bootstrap/Provisioning.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use GuzzleHttp\Exception\GuzzleException;
use Psr\Http\Message\ResponseInterface;
use PHPUnit\Framework\Assert;
use TestHelpers\GraphHelper;
use TestHelpers\OcsApiHelper;
use TestHelpers\UserHelper;
use TestHelpers\HttpRequestHelper;
Expand Down Expand Up @@ -3831,8 +3830,12 @@ public function adminHasDisabledUserUsingTheProvisioningApi(?string $user):void
} else {
$response = $this->disableOrEnableUser($this->getAdminUsername(), $user, 'disable');
}
$this->setResponse($response);
$this->thenTheHTTPStatusCodeShouldBe(200);
Assert::assertEquals(
200,
$response->getStatusCode(),
" Expected status code is 200 but received " . $response->getStatusCode()
. "\nResponse body: " . $response->getBody(),
);
}

/**
Expand Down

0 comments on commit 77dee2c

Please sign in to comment.