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