1*e9e85398SGreg Roach<?php 2*e9e85398SGreg Roach/** 3*e9e85398SGreg Roach * webtrees: online genealogy 4*e9e85398SGreg Roach * Copyright (C) 2019 webtrees development team 5*e9e85398SGreg Roach * This program is free software: you can redistribute it and/or modify 6*e9e85398SGreg Roach * it under the terms of the GNU General Public License as published by 7*e9e85398SGreg Roach * the Free Software Foundation, either version 3 of the License, or 8*e9e85398SGreg Roach * (at your option) any later version. 9*e9e85398SGreg Roach * This program is distributed in the hope that it will be useful, 10*e9e85398SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 11*e9e85398SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12*e9e85398SGreg Roach * GNU General Public License for more details. 13*e9e85398SGreg Roach * You should have received a copy of the GNU General Public License 14*e9e85398SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 15*e9e85398SGreg Roach */ 16*e9e85398SGreg Roachdeclare(strict_types=1); 17*e9e85398SGreg Roach 18*e9e85398SGreg Roachnamespace Fisharebest\Webtrees; 19*e9e85398SGreg Roach 20*e9e85398SGreg Roach/** 21*e9e85398SGreg Roach * Test the user functions 22*e9e85398SGreg Roach * 23*e9e85398SGreg Roach * @coversNothing 24*e9e85398SGreg Roach */ 25*e9e85398SGreg Roachclass ImportGedcomTest extends \Fisharebest\Webtrees\TestCase 26*e9e85398SGreg Roach{ 27*e9e85398SGreg Roach protected static $uses_database = true; 28*e9e85398SGreg Roach 29*e9e85398SGreg Roach /** 30*e9e85398SGreg Roach * @return void 31*e9e85398SGreg Roach */ 32*e9e85398SGreg Roach public function testImportTrees(): void 33*e9e85398SGreg Roach { 34*e9e85398SGreg Roach $tree = $this->importTree('demo.ged'); 35*e9e85398SGreg Roach 36*e9e85398SGreg Roach $this->assertSame(1, $tree->id()); 37*e9e85398SGreg Roach } 38*e9e85398SGreg Roach} 39