. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Auth; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(UserListPage::class)] class UserListTest extends TestCase { protected static bool $uses_database = true; public function testHandler(): void { $handler = new UserListPage(); $request = self::createRequest() ->withAttribute('user', Auth::user()); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); } }