1ae7eefd4SGreg Roach<?php 2*3976b470SGreg Roach 3ae7eefd4SGreg Roach/** 4ae7eefd4SGreg Roach * webtrees: online genealogy 5ae7eefd4SGreg Roach * Copyright (C) 2019 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 15ae7eefd4SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 16ae7eefd4SGreg Roach */ 17ae7eefd4SGreg Roachdeclare(strict_types=1); 18ae7eefd4SGreg Roach 19ae7eefd4SGreg Roachnamespace Fisharebest\Webtrees; 20ae7eefd4SGreg Roach 21ae7eefd4SGreg Roach/** 22ae7eefd4SGreg Roach * Test the user functions 23ae7eefd4SGreg Roach * 24ae7eefd4SGreg Roach * @coversNothing 25ae7eefd4SGreg Roach */ 26e5a6b4d4SGreg Roachclass ImportGedcomTest extends TestCase 27ae7eefd4SGreg Roach{ 28ae7eefd4SGreg Roach protected static $uses_database = true; 29ae7eefd4SGreg Roach 30ae7eefd4SGreg Roach /** 31ae7eefd4SGreg Roach * @return void 32ae7eefd4SGreg Roach */ 33ae7eefd4SGreg Roach public function testImportTrees(): void 34ae7eefd4SGreg Roach { 35ae7eefd4SGreg Roach $tree = $this->importTree('demo.ged'); 36ae7eefd4SGreg Roach 3757ab2231SGreg Roach $this->assertSame('1', $tree->getPreference('imported')); 38ae7eefd4SGreg Roach } 39ae7eefd4SGreg Roach} 40