. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Services\MapDataService; use Fisharebest\Webtrees\TestCase; /** * Test the location export. * * @covers \Fisharebest\Webtrees\Http\RequestHandlers\MapDataExportGeoJson */ class MapDataExportGeoJsonTest extends TestCase { protected static $uses_database = true; /** * @return void */ public function testExportGeoJson(): void { $map_data_service = new MapDataService(); $handler = new MapDataExportGeoJson($map_data_service); $request = self::createRequest(); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); self::assertSame($response->getHeaderLine('Content-Type'), 'application/vnd.geo+json'); } }