. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Auth; use Fisharebest\Webtrees\TestCase; /** * Test UserListTest class. * * @covers \Fisharebest\Webtrees\Http\RequestHandlers\UserListPage */ class UserListTest extends TestCase { protected static $uses_database = true; /** * @return void */ 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()); } }