. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\TestCase; /** * Test the location import. * * @covers \Fisharebest\Webtrees\Http\RequestHandlers\MapDataImportPage */ 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'); } }