Merge pull request #23859 from nextcloud/techdebt/23827/remove-ocsresponse-type-hint

Remove OCSResponse type hint
This commit is contained in:
kesselb 2020-11-03 14:28:16 +01:00 committed by GitHub
commit af5a07e73c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -232,7 +232,6 @@ class OCSMiddlewareTest extends \Test\TestCase {
$this->assertSame($response, $newResponse);
} else {
$this->assertInstanceOf(BaseResponse::class, $newResponse);
/** @var Http\OCSResponse $newResponse */
$this->assertSame($response->getData()['message'], $this->invokePrivate($newResponse, 'statusMessage'));
$this->assertSame(\OCP\API::RESPOND_UNAUTHORISED, $newResponse->getOCSStatus());
$this->assertSame(Http::STATUS_UNAUTHORIZED, $newResponse->getStatus());