. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\Services\DatatablesService; use Fisharebest\Webtrees\Services\ModuleService; use Fisharebest\Webtrees\Services\UserService; use Fisharebest\Webtrees\TestCase; /** * Test UserEditPageTest class. * * @covers \Fisharebest\Webtrees\Http\RequestHandlers\UserListData */ class UserListDataTest extends TestCase { protected static bool $uses_database = true; /** * @return void */ public function testHandler(): void { $datatables_service = new DatatablesService(); $module_service = new ModuleService(); $user_service = new UserService(); $handler = new UserListData($datatables_service, $module_service, $user_service); $request = self::createRequest(); $response = $handler->handle($request); self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); } }