summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/MockGlobalFunctions.php25
-rw-r--r--tests/app/Census/CensusColumnRelationToHeadTest.php8
2 files changed, 6 insertions, 27 deletions
diff --git a/tests/MockGlobalFunctions.php b/tests/MockGlobalFunctions.php
deleted file mode 100644
index 2bba1bf940..0000000000
--- a/tests/MockGlobalFunctions.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/**
- * webtrees: online genealogy
- * Copyright (C) 2025 webtrees development team
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-namespace Fisharebest\Webtrees;
-
-abstract class MockGlobalFunctions
-{
- abstract public function iniGet(string $varname): string;
-}
diff --git a/tests/app/Census/CensusColumnRelationToHeadTest.php b/tests/app/Census/CensusColumnRelationToHeadTest.php
index fb02ce3f08..4b2a2ffeb3 100644
--- a/tests/app/Census/CensusColumnRelationToHeadTest.php
+++ b/tests/app/Census/CensusColumnRelationToHeadTest.php
@@ -27,14 +27,18 @@ use PHPUnit\Framework\Attributes\CoversClass;
#[CoversClass(AbstractCensusColumn::class)]
class CensusColumnRelationToHeadTest extends TestCase
{
+ protected static bool $uses_database = true;
+
public function testNull(): void
{
- $individual = $this->createMock(Individual::class);
+ $individual1 = $this->createMock(Individual::class);
+ $individual2 = $this->createMock(Individual::class);
$census = $this->createMock(CensusInterface::class);
$column = new CensusColumnRelationToHead($census, '', '');
- self::assertSame('-', $column->generate($individual, $individual));
+ self::assertSame('-', $column->generate($individual1, $individual1));
+ self::assertSame('', $column->generate($individual1, $individual2));
}
}