12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- declare(strict_types=1);
- namespace Tests\Http\WellKnown;
- use OCP\AppFramework\Http\JSONResponse;
- use OCP\Http\WellKnown\GenericResponse;
- use Test\TestCase;
- class GenericResponseTest extends TestCase {
- public function testToHttpResponse(): void {
- $httpResponse = $this->createMock(JSONResponse::class);
- $response = new GenericResponse($httpResponse);
- self::assertSame($httpResponse, $response->toHttpResponse());
- }
- }
|