PHPUnit::assertFalse($this->isPermissionError($response->baseResponse ?? $response->response), 'Failed asserting the response does not contain a permission error.');
}
/**
* Check if the given response is a permission error.
*/
privatefunctionisPermissionError($response): bool
{
if ($response->status() === 403 && $responseinstanceof JsonResponse) {