summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-01-29 16:15:10 +0000
committerGreg Roach <greg@subaqua.co.uk>2025-02-11 22:50:04 +0000
commit3afec007854814e4580599c5b05bda4501764133 (patch)
tree66935d00765272c50d347536392ed4149377dc33 /tests
parent2bfee398992e84af8dbcab92c238f175dbed35bf (diff)
downloadwebtrees-3afec007854814e4580599c5b05bda4501764133.tar.gz
webtrees-3afec007854814e4580599c5b05bda4501764133.tar.bz2
webtrees-3afec007854814e4580599c5b05bda4501764133.zip
Refactor statistics
Diffstat (limited to 'tests')
-rw-r--r--tests/app/Module/StatisticsChartModuleTest.php9
-rw-r--r--tests/app/Statistics/Google/ChartAgeTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartBirthTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartChildrenTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartCommonGivenTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartCommonSurnameTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartDeathTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartDistributionTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartDivorceTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartFamilyLargestTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartFamilyWithSourcesTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartIndividualWithSourcesTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartMarriageAgeTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartMarriageTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartMediaTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartMortalityTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartNoChildrenFamiliesTest.php32
-rw-r--r--tests/app/Statistics/Google/ChartSexTest.php32
-rw-r--r--tests/app/Statistics/Repository/BrowserRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/ContactRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/EventRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/FamilyDatesRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/FamilyRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/FavoritesRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/GedcomRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/HitCountRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/IndividualRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/LatestUserRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/MediaRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/MessageRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/NewsRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/PlaceRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/ServerRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Repository/UserRepositoryTest.php32
-rw-r--r--tests/app/Statistics/Service/CenturyServiceTest.php32
-rw-r--r--tests/app/Statistics/Service/ColorServiceTest.php32
-rw-r--r--tests/app/Statistics/Service/CountryServiceTest.php32
-rw-r--r--tests/feature/EmbeddedVariablesTest.php27
38 files changed, 25 insertions, 1163 deletions
diff --git a/tests/app/Module/StatisticsChartModuleTest.php b/tests/app/Module/StatisticsChartModuleTest.php
index 626055ed95..3dce2aadf8 100644
--- a/tests/app/Module/StatisticsChartModuleTest.php
+++ b/tests/app/Module/StatisticsChartModuleTest.php
@@ -31,6 +31,7 @@ use PHPUnit\Framework\Attributes\DataProvider;
#[CoversClass(StatisticsChartModule::class)]
#[CoversClass(Statistics::class)]
+#[CoversClass(StatisticsData::class)]
class StatisticsChartModuleTest extends TestCase
{
protected static bool $uses_database = true;
@@ -173,6 +174,14 @@ class StatisticsChartModuleTest extends TestCase
Registry::container()->set(Tree::class, $tree);
$module = new StatisticsChartModule();
+
+ $request = self::createRequest()->withAttribute('tree', $tree);
+
+ $response = $module->getCustomAction($request);
+
+ self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
+ self::assertNotEmpty($response->getBody()->getContents());
+
$request = self::createRequest(RequestMethodInterface::METHOD_POST)
->withAttribute('tree', $tree)
->withParsedBody([
diff --git a/tests/app/Statistics/Google/ChartAgeTest.php b/tests/app/Statistics/Google/ChartAgeTest.php
deleted file mode 100644
index 67e89d87b0..0000000000
--- a/tests/app/Statistics/Google/ChartAgeTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartAge::class)]
-class ChartAgeTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartAge::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartBirthTest.php b/tests/app/Statistics/Google/ChartBirthTest.php
deleted file mode 100644
index 72092fa027..0000000000
--- a/tests/app/Statistics/Google/ChartBirthTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartBirth::class)]
-class ChartBirthTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartBirth::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartChildrenTest.php b/tests/app/Statistics/Google/ChartChildrenTest.php
deleted file mode 100644
index 6fbda811a8..0000000000
--- a/tests/app/Statistics/Google/ChartChildrenTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartChildren::class)]
-class ChartChildrenTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartChildren::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartCommonGivenTest.php b/tests/app/Statistics/Google/ChartCommonGivenTest.php
deleted file mode 100644
index a7ae517e02..0000000000
--- a/tests/app/Statistics/Google/ChartCommonGivenTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartCommonGiven::class)]
-class ChartCommonGivenTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartCommonGiven::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartCommonSurnameTest.php b/tests/app/Statistics/Google/ChartCommonSurnameTest.php
deleted file mode 100644
index ea47d6eaef..0000000000
--- a/tests/app/Statistics/Google/ChartCommonSurnameTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartCommonSurname::class)]
-class ChartCommonSurnameTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartCommonSurname::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartDeathTest.php b/tests/app/Statistics/Google/ChartDeathTest.php
deleted file mode 100644
index f8fd47a6b9..0000000000
--- a/tests/app/Statistics/Google/ChartDeathTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartDeath::class)]
-class ChartDeathTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartDeath::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartDistributionTest.php b/tests/app/Statistics/Google/ChartDistributionTest.php
deleted file mode 100644
index f222d6488b..0000000000
--- a/tests/app/Statistics/Google/ChartDistributionTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartDistribution::class)]
-class ChartDistributionTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartDistribution::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartDivorceTest.php b/tests/app/Statistics/Google/ChartDivorceTest.php
deleted file mode 100644
index 71d750f21a..0000000000
--- a/tests/app/Statistics/Google/ChartDivorceTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartDivorce::class)]
-class ChartDivorceTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartDivorce::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartFamilyLargestTest.php b/tests/app/Statistics/Google/ChartFamilyLargestTest.php
deleted file mode 100644
index 4b4ad20e38..0000000000
--- a/tests/app/Statistics/Google/ChartFamilyLargestTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartFamilyLargest::class)]
-class ChartFamilyLargestTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartFamilyLargest::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartFamilyWithSourcesTest.php b/tests/app/Statistics/Google/ChartFamilyWithSourcesTest.php
deleted file mode 100644
index 88497379f1..0000000000
--- a/tests/app/Statistics/Google/ChartFamilyWithSourcesTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartFamilyWithSources::class)]
-class ChartFamilyWithSourcesTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartFamilyWithSources::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartIndividualWithSourcesTest.php b/tests/app/Statistics/Google/ChartIndividualWithSourcesTest.php
deleted file mode 100644
index 8d9e39c1b5..0000000000
--- a/tests/app/Statistics/Google/ChartIndividualWithSourcesTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartIndividualWithSources::class)]
-class ChartIndividualWithSourcesTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartIndividualWithSources::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartMarriageAgeTest.php b/tests/app/Statistics/Google/ChartMarriageAgeTest.php
deleted file mode 100644
index 57dba692c5..0000000000
--- a/tests/app/Statistics/Google/ChartMarriageAgeTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartMarriageAge::class)]
-class ChartMarriageAgeTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartMarriageAge::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartMarriageTest.php b/tests/app/Statistics/Google/ChartMarriageTest.php
deleted file mode 100644
index 4f8de61858..0000000000
--- a/tests/app/Statistics/Google/ChartMarriageTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartMarriage::class)]
-class ChartMarriageTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartMarriage::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartMediaTest.php b/tests/app/Statistics/Google/ChartMediaTest.php
deleted file mode 100644
index 60637141d9..0000000000
--- a/tests/app/Statistics/Google/ChartMediaTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartMedia::class)]
-class ChartMediaTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartMedia::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartMortalityTest.php b/tests/app/Statistics/Google/ChartMortalityTest.php
deleted file mode 100644
index 62402bafc5..0000000000
--- a/tests/app/Statistics/Google/ChartMortalityTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartMortality::class)]
-class ChartMortalityTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartMortality::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartNoChildrenFamiliesTest.php b/tests/app/Statistics/Google/ChartNoChildrenFamiliesTest.php
deleted file mode 100644
index a60c8e6a72..0000000000
--- a/tests/app/Statistics/Google/ChartNoChildrenFamiliesTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartNoChildrenFamilies::class)]
-class ChartNoChildrenFamiliesTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartNoChildrenFamilies::class));
- }
-}
diff --git a/tests/app/Statistics/Google/ChartSexTest.php b/tests/app/Statistics/Google/ChartSexTest.php
deleted file mode 100644
index c964be88ab..0000000000
--- a/tests/app/Statistics/Google/ChartSexTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Google;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ChartSex::class)]
-class ChartSexTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ChartSex::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/BrowserRepositoryTest.php b/tests/app/Statistics/Repository/BrowserRepositoryTest.php
deleted file mode 100644
index 1dc0927987..0000000000
--- a/tests/app/Statistics/Repository/BrowserRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(BrowserRepository::class)]
-class BrowserRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(BrowserRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/ContactRepositoryTest.php b/tests/app/Statistics/Repository/ContactRepositoryTest.php
deleted file mode 100644
index a524b05f04..0000000000
--- a/tests/app/Statistics/Repository/ContactRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ContactRepository::class)]
-class ContactRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ContactRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/EventRepositoryTest.php b/tests/app/Statistics/Repository/EventRepositoryTest.php
deleted file mode 100644
index 030fa3a70e..0000000000
--- a/tests/app/Statistics/Repository/EventRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(EventRepository::class)]
-class EventRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(EventRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/FamilyDatesRepositoryTest.php b/tests/app/Statistics/Repository/FamilyDatesRepositoryTest.php
deleted file mode 100644
index 771aa7fa50..0000000000
--- a/tests/app/Statistics/Repository/FamilyDatesRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(FamilyDatesRepository::class)]
-class FamilyDatesRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(FamilyDatesRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/FamilyRepositoryTest.php b/tests/app/Statistics/Repository/FamilyRepositoryTest.php
deleted file mode 100644
index fe6a82381e..0000000000
--- a/tests/app/Statistics/Repository/FamilyRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(FamilyRepository::class)]
-class FamilyRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(FamilyRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/FavoritesRepositoryTest.php b/tests/app/Statistics/Repository/FavoritesRepositoryTest.php
deleted file mode 100644
index f95192d752..0000000000
--- a/tests/app/Statistics/Repository/FavoritesRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(FavoritesRepository::class)]
-class FavoritesRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(FavoritesRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/GedcomRepositoryTest.php b/tests/app/Statistics/Repository/GedcomRepositoryTest.php
deleted file mode 100644
index 8a0c3c308c..0000000000
--- a/tests/app/Statistics/Repository/GedcomRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(GedcomRepository::class)]
-class GedcomRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(GedcomRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/HitCountRepositoryTest.php b/tests/app/Statistics/Repository/HitCountRepositoryTest.php
deleted file mode 100644
index 6769d036e6..0000000000
--- a/tests/app/Statistics/Repository/HitCountRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(HitCountRepository::class)]
-class HitCountRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(HitCountRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/IndividualRepositoryTest.php b/tests/app/Statistics/Repository/IndividualRepositoryTest.php
deleted file mode 100644
index c09c68baee..0000000000
--- a/tests/app/Statistics/Repository/IndividualRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(IndividualRepository::class)]
-class IndividualRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(IndividualRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/LatestUserRepositoryTest.php b/tests/app/Statistics/Repository/LatestUserRepositoryTest.php
deleted file mode 100644
index 2c7bb12d94..0000000000
--- a/tests/app/Statistics/Repository/LatestUserRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(LatestUserRepository::class)]
-class LatestUserRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(LatestUserRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/MediaRepositoryTest.php b/tests/app/Statistics/Repository/MediaRepositoryTest.php
deleted file mode 100644
index c5ce67dcba..0000000000
--- a/tests/app/Statistics/Repository/MediaRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(MediaRepository::class)]
-class MediaRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(MediaRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/MessageRepositoryTest.php b/tests/app/Statistics/Repository/MessageRepositoryTest.php
deleted file mode 100644
index 1007844d4b..0000000000
--- a/tests/app/Statistics/Repository/MessageRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(MessageRepository::class)]
-class MessageRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(MessageRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/NewsRepositoryTest.php b/tests/app/Statistics/Repository/NewsRepositoryTest.php
deleted file mode 100644
index f265942338..0000000000
--- a/tests/app/Statistics/Repository/NewsRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(NewsRepository::class)]
-class NewsRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(NewsRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/PlaceRepositoryTest.php b/tests/app/Statistics/Repository/PlaceRepositoryTest.php
deleted file mode 100644
index 95a505e899..0000000000
--- a/tests/app/Statistics/Repository/PlaceRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(PlaceRepository::class)]
-class PlaceRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(PlaceRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/ServerRepositoryTest.php b/tests/app/Statistics/Repository/ServerRepositoryTest.php
deleted file mode 100644
index e016e6cd6e..0000000000
--- a/tests/app/Statistics/Repository/ServerRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ServerRepository::class)]
-class ServerRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ServerRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Repository/UserRepositoryTest.php b/tests/app/Statistics/Repository/UserRepositoryTest.php
deleted file mode 100644
index b945c0730b..0000000000
--- a/tests/app/Statistics/Repository/UserRepositoryTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Repository;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(UserRepository::class)]
-class UserRepositoryTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(UserRepository::class));
- }
-}
diff --git a/tests/app/Statistics/Service/CenturyServiceTest.php b/tests/app/Statistics/Service/CenturyServiceTest.php
deleted file mode 100644
index 6545a441d1..0000000000
--- a/tests/app/Statistics/Service/CenturyServiceTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Service;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(CenturyService::class)]
-class CenturyServiceTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(CenturyService::class));
- }
-}
diff --git a/tests/app/Statistics/Service/ColorServiceTest.php b/tests/app/Statistics/Service/ColorServiceTest.php
deleted file mode 100644
index 8ba14c97f0..0000000000
--- a/tests/app/Statistics/Service/ColorServiceTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Service;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(ColorService::class)]
-class ColorServiceTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(ColorService::class));
- }
-}
diff --git a/tests/app/Statistics/Service/CountryServiceTest.php b/tests/app/Statistics/Service/CountryServiceTest.php
deleted file mode 100644
index 8333cefced..0000000000
--- a/tests/app/Statistics/Service/CountryServiceTest.php
+++ /dev/null
@@ -1,32 +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\Statistics\Service;
-
-use Fisharebest\Webtrees\TestCase;
-use PHPUnit\Framework\Attributes\CoversClass;
-
-#[CoversClass(CountryService::class)]
-class CountryServiceTest extends TestCase
-{
- public function testClass(): void
- {
- self::assertTrue(class_exists(CountryService::class));
- }
-}
diff --git a/tests/feature/EmbeddedVariablesTest.php b/tests/feature/EmbeddedVariablesTest.php
index 4544317ec0..7367d1015b 100644
--- a/tests/feature/EmbeddedVariablesTest.php
+++ b/tests/feature/EmbeddedVariablesTest.php
@@ -25,15 +25,13 @@ use Fisharebest\Webtrees\Services\GedcomImportService;
use Fisharebest\Webtrees\Services\ModuleService;
use Fisharebest\Webtrees\Services\TreeService;
use Fisharebest\Webtrees\Services\UserService;
-use Fisharebest\Webtrees\Statistics\Service\CenturyService;
-use Fisharebest\Webtrees\Statistics\Service\ColorService;
-use Fisharebest\Webtrees\Statistics\Service\CountryService;
use PHPUnit\Framework\Attributes\CoversClass;
use Psr\Http\Message\ServerRequestInterface;
-#[CoversClass(CenturyService::class)]
-#[CoversClass(ColorService::class)]
#[CoversClass(Statistics::class)]
+#[CoversClass(StatisticsData::class)]
+#[CoversClass(StatisticsData::class)]
+#[CoversClass(StatisticsFormat::class)]
class EmbeddedVariablesTest extends TestCase
{
private const PLACEHOLDERS = [
@@ -110,6 +108,16 @@ class EmbeddedVariablesTest extends TestCase
'#commonGivenMaleTable:5:5#',
'#commonGivenMaleTotals#',
'#commonGivenMaleTotals:5:5#',
+ '#commonGivenOther#',
+ '#commonGivenOther:5:5#',
+ '#commonGivenOtherList#',
+ '#commonGivenOtherList:5:5#',
+ '#commonGivenOtherListTotals#',
+ '#commonGivenOtherListTotals:5:5#',
+ '#commonGivenOtherTable#',
+ '#commonGivenOtherTable:5:5#',
+ '#commonGivenOtherTotals#',
+ '#commonGivenOtherTotals:5:5#',
'#commonGivenTable#',
'#commonGivenTable:5:5#',
'#commonGivenTotals#',
@@ -368,12 +376,15 @@ class EmbeddedVariablesTest extends TestCase
'#totalSexFemalesPercentage#',
'#totalSexMales#',
'#totalSexMalesPercentage#',
+ '#totalSexOther#',
+ '#totalSexOtherPercentage#',
'#totalSexUnknown#',
'#totalSexUnknownPercentage#',
'#totalSources#',
'#totalSourcesPercentage#',
'#totalSurnames#',
'#totalSurnames:Spencer#',
+ '#totalTreeNews#',
'#totalUserFavorites#',
'#totalUserJournal#',
'#totalUserMessages#',
@@ -414,9 +425,6 @@ class EmbeddedVariablesTest extends TestCase
Registry::container()->set(ServerRequestInterface::class, $request);
$statistics = new Statistics(
- new CenturyService(),
- new ColorService(),
- new CountryService(),
new ModuleService(),
$tree,
$user_service
@@ -450,9 +458,6 @@ class EmbeddedVariablesTest extends TestCase
Registry::container()->set(ServerRequestInterface::class, $request);
$statistics = new Statistics(
- new CenturyService(),
- new ColorService(),
- new CountryService(),
new ModuleService(),
$tree,
$user_service