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