Skip to content
Snippets Groups Projects
Unverified Commit f03bb471 authored by Morris Jobke's avatar Morris Jobke
Browse files

Remove OCSResponse type hint - see #23827


Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 65375320
No related branches found
No related tags found
No related merge requests found
...@@ -232,7 +232,6 @@ class OCSMiddlewareTest extends \Test\TestCase { ...@@ -232,7 +232,6 @@ class OCSMiddlewareTest extends \Test\TestCase {
$this->assertSame($response, $newResponse); $this->assertSame($response, $newResponse);
} else { } else {
$this->assertInstanceOf(BaseResponse::class, $newResponse); $this->assertInstanceOf(BaseResponse::class, $newResponse);
/** @var Http\OCSResponse $newResponse */
$this->assertSame($response->getData()['message'], $this->invokePrivate($newResponse, 'statusMessage')); $this->assertSame($response->getData()['message'], $this->invokePrivate($newResponse, 'statusMessage'));
$this->assertSame(\OCP\API::RESPOND_UNAUTHORISED, $newResponse->getOCSStatus()); $this->assertSame(\OCP\API::RESPOND_UNAUTHORISED, $newResponse->getOCSStatus());
$this->assertSame(Http::STATUS_UNAUTHORIZED, $newResponse->getStatus()); $this->assertSame(Http::STATUS_UNAUTHORIZED, $newResponse->getStatus());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment