mirror of
https://github.com/nextcloud/server.git
synced 2026-11-11 04:17:26 +01:00
There was a weird inconsistent mix of Test\, Tests\lib, Test\Core, Tests\Core and Core\. Now there is only Test\ for tests/lib/ and Tests\Core for tests/Core. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
25 lines
564 B
PHP
25 lines
564 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace Test\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());
|
|
}
|
|
}
|