Remove OCSResponse type hint - see #23827

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-11-03 10:43:32 +01:00
parent 65375320fb
commit f03bb4716b
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68

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());