summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-10-18 13:27:28 +0100
committerGreg Roach <greg@subaqua.co.uk>2025-10-18 13:27:28 +0100
commit74f0b3d0f8ece972e697cdced7f2f118835906b0 (patch)
treea09a8555a00402c31d0fc23396d8930b4488de56 /tests
parentb7353fdefbcfa2b683a9221078817fc1f6228ea9 (diff)
downloadwebtrees-74f0b3d0f8ece972e697cdced7f2f118835906b0.tar.gz
webtrees-74f0b3d0f8ece972e697cdced7f2f118835906b0.tar.bz2
webtrees-74f0b3d0f8ece972e697cdced7f2f118835906b0.zip
Move pending changes logic to service
Diffstat (limited to 'tests')
-rw-r--r--tests/app/Http/RequestHandlers/UpgradeWizardStepTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/app/Http/RequestHandlers/UpgradeWizardStepTest.php b/tests/app/Http/RequestHandlers/UpgradeWizardStepTest.php
index 030a7135fa..7da213934f 100644
--- a/tests/app/Http/RequestHandlers/UpgradeWizardStepTest.php
+++ b/tests/app/Http/RequestHandlers/UpgradeWizardStepTest.php
@@ -27,6 +27,7 @@ use Fisharebest\Webtrees\Http\Exceptions\HttpServerErrorException;
use Fisharebest\Webtrees\Services\GedcomExportService;
use Fisharebest\Webtrees\Services\GedcomImportService;
use Fisharebest\Webtrees\Services\MaintenanceModeService;
+use Fisharebest\Webtrees\Services\PendingChangesService;
use Fisharebest\Webtrees\Services\PhpService;
use Fisharebest\Webtrees\Services\TimeoutService;
use Fisharebest\Webtrees\Services\TreeService;
@@ -47,6 +48,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
new UpgradeService(new TimeoutService(php_service: new PhpService())),
);
@@ -65,6 +67,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
$mock_upgrade_service
);
@@ -84,6 +87,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
$mock_upgrade_service
);
@@ -101,6 +105,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
$mock_upgrade_service
);
@@ -114,6 +119,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
new UpgradeService(new TimeoutService(php_service: new PhpService()))
);
@@ -129,6 +135,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
new UpgradeService(new TimeoutService(php_service: new PhpService()))
);
@@ -151,6 +158,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
new UpgradeService(new TimeoutService(php_service: new PhpService()))
);
@@ -171,6 +179,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
$tree_service,
new UpgradeService(new TimeoutService(php_service: new PhpService()))
);
@@ -195,6 +204,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
$mock_upgrade_service
);
@@ -210,6 +220,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
$mock_upgrade_service
);
@@ -227,6 +238,7 @@ class UpgradeWizardStepTest extends TestCase
$handler = new UpgradeWizardStep(
new GedcomExportService(new Psr17Factory(), new Psr17Factory()),
new MaintenanceModeService(__DIR__ . '/../../../data/'),
+ new PendingChangesService(new GedcomImportService()),
new TreeService(new GedcomImportService()),
$mock_upgrade_service
);