summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-02-12 15:37:01 +0000
committerGreg Roach <greg@subaqua.co.uk>2025-02-12 22:56:54 +0000
commit1d7c1cc4669761e38c9aa1b6c925294c294eed65 (patch)
treea2ddc93a3c734bb50627b52e6549de3db4e3ae9a /tests
parent9bad59800a8a81b6263fd5a46e53022ccea4a9a3 (diff)
downloadwebtrees-1d7c1cc4669761e38c9aa1b6c925294c294eed65.tar.gz
webtrees-1d7c1cc4669761e38c9aa1b6c925294c294eed65.tar.bz2
webtrees-1d7c1cc4669761e38c9aa1b6c925294c294eed65.zip
Delete old test script
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));
}
}