. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Services\MediaFileService; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(UploadMediaAction::class)] class UploadMediaActionTest extends TestCase { protected static bool $uses_database = true; public function testResponseIsOK(): void { $media_file_service = new MediaFileService(); $handler = new UploadMediaAction($media_file_service); $request = self::createRequest(); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode()); } }