. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(MapDataImportPage::class)] class MapDataImportPageTest extends TestCase { protected static bool $uses_database = true; public function testImportPage(): void { $handler = new MapDataImportPage(); $request = self::createRequest(); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); self::assertSame($response->getHeaderLine('content-type'), 'text/html; charset=UTF-8'); } }