1ae7eefd4SGreg Roach<?php 23976b470SGreg Roach 3ae7eefd4SGreg Roach/** 4ae7eefd4SGreg Roach * webtrees: online genealogy 5d11be702SGreg Roach * Copyright (C) 2023 webtrees development team 6ae7eefd4SGreg Roach * This program is free software: you can redistribute it and/or modify 7ae7eefd4SGreg Roach * it under the terms of the GNU General Public License as published by 8ae7eefd4SGreg Roach * the Free Software Foundation, either version 3 of the License, or 9ae7eefd4SGreg Roach * (at your option) any later version. 10ae7eefd4SGreg Roach * This program is distributed in the hope that it will be useful, 11ae7eefd4SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12ae7eefd4SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13ae7eefd4SGreg Roach * GNU General Public License for more details. 14ae7eefd4SGreg Roach * You should have received a copy of the GNU General Public License 1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 16ae7eefd4SGreg Roach */ 17fcfa147eSGreg Roach 18ae7eefd4SGreg Roachdeclare(strict_types=1); 19ae7eefd4SGreg Roach 20ae7eefd4SGreg Roachnamespace Fisharebest\Webtrees; 21ae7eefd4SGreg Roach 22*202c018bSGreg Roachuse Fisharebest\Webtrees\Services\GedcomImportService; 23*202c018bSGreg Roachuse PHPUnit\Framework\Attributes\CoversClass; 24*202c018bSGreg Roach 25*202c018bSGreg Roach#[CoversClass(GedcomImportService::class)] 26e5a6b4d4SGreg Roachclass ImportGedcomTest extends TestCase 27ae7eefd4SGreg Roach{ 28cd94ca66SGreg Roach protected static bool $uses_database = true; 29ae7eefd4SGreg Roach 30ae7eefd4SGreg Roach public function testImportTrees(): void 31ae7eefd4SGreg Roach { 32ae7eefd4SGreg Roach $tree = $this->importTree('demo.ged'); 33ae7eefd4SGreg Roach 345e933c21SGreg Roach self::assertSame('1', $tree->getPreference('imported')); 35ae7eefd4SGreg Roach } 36ae7eefd4SGreg Roach} 37