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