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