xref: /webtrees/tests/feature/ImportGedcomTest.php (revision 5e933c21f8006e675d1df8bcedc634ee61f4aec2)
1ae7eefd4SGreg Roach<?php
23976b470SGreg Roach
3ae7eefd4SGreg Roach/**
4ae7eefd4SGreg Roach * webtrees: online genealogy
5*5e933c21SGreg Roach * Copyright (C) 2020 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 */
17fcfa147eSGreg Roach
18ae7eefd4SGreg Roachdeclare(strict_types=1);
19ae7eefd4SGreg Roach
20ae7eefd4SGreg Roachnamespace Fisharebest\Webtrees;
21ae7eefd4SGreg Roach
22ae7eefd4SGreg Roach/**
23ae7eefd4SGreg Roach * Test the user functions
24ae7eefd4SGreg Roach *
25ae7eefd4SGreg Roach * @coversNothing
26ae7eefd4SGreg Roach */
27e5a6b4d4SGreg Roachclass ImportGedcomTest extends TestCase
28ae7eefd4SGreg Roach{
29ae7eefd4SGreg Roach    protected static $uses_database = true;
30ae7eefd4SGreg Roach
31ae7eefd4SGreg Roach    /**
32ae7eefd4SGreg Roach     * @return void
33ae7eefd4SGreg Roach     */
34ae7eefd4SGreg Roach    public function testImportTrees(): void
35ae7eefd4SGreg Roach    {
36ae7eefd4SGreg Roach        $tree = $this->importTree('demo.ged');
37ae7eefd4SGreg Roach
38*5e933c21SGreg Roach        self::assertSame('1', $tree->getPreference('imported'));
39ae7eefd4SGreg Roach    }
40ae7eefd4SGreg Roach}
41