aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Http/WellKnown/GenericResponseTest.php
blob: f35f43221b8ce41451e263a2cfc29d258a14844e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

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