. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; 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; /** * @return void */ public function testWizard(): void { $timeout_service = new TimeoutService(); $tree_service = new TreeService(); $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()); } }