diff --git a/tests/acceptance/features/bootstrap/GraphContext.php b/tests/acceptance/features/bootstrap/GraphContext.php index 4a634967f..028479530 100644 --- a/tests/acceptance/features/bootstrap/GraphContext.php +++ b/tests/acceptance/features/bootstrap/GraphContext.php @@ -173,8 +173,8 @@ class GraphContext implements Context { * @throws Exception */ public function theUserHasDisabledUser(string $byUser, string $user): void { - $this->theUserDisablesUserToUsingTheGraphApi($byUser, $user); - $this->featureContext->thenTheHTTPStatusCodeShouldBe(200); + $response = $this->editUserUsingTheGraphApi($byUser, $user, null, null, null, null, false); + $this->featureContext->theHTTPStatusCodeShouldBe(200, '', $response); } /**