. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Services\UserService; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(AccountDelete::class)] class AccountDeleteTest extends TestCase { public function testHandler(): void { $user_service = $this->createMock(UserService::class); $request = self::createRequest(); $handler = new AccountDelete($user_service); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode()); } }