. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Services\GedcomImportService; use Fisharebest\Webtrees\Services\TimeoutService; use Fisharebest\Webtrees\Services\TreeService; use Fisharebest\Webtrees\Services\UpgradeService; use Fisharebest\Webtrees\TestCase; /** * Test UpgradeController class. * * @covers \Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardPage */ class UpgradeWizardPageTest extends TestCase { protected static bool $uses_database = true; public function testWizard(): void { $timeout_service = new TimeoutService(); $gedcom_import_service = new GedcomImportService(); $tree_service = new TreeService($gedcom_import_service); $upgrade_service = new UpgradeService($timeout_service); $handler = new UpgradeWizardPage($tree_service, $upgrade_service); $request = self::createRequest(); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); } }