. */ 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(ManageMediaPage::class)] class ManageMediaPageTest extends TestCase { protected static bool $uses_database = true; public function testIndex(): void { $media_file_service = new MediaFileService(); $handler = new ManageMediaPage($media_file_service); $request = self::createRequest(); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); } }