. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Services\UserService; use Fisharebest\Webtrees\TestCase; /** * Test the AccountDelete request handler. * * @covers \Fisharebest\Webtrees\Http\RequestHandlers\AccountDelete */ class AccountDeleteTest extends TestCase { public function testHandler(): void { $user_service = $this->createStub(UserService::class); $request = self::createRequest(); $handler = new AccountDelete($user_service); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode()); } }