count(3)->create(); $dataTableService = new DataTableService( Request::create('/'), new Store('test', new NullSessionHandler()), static fn (string $table): array => Schema::getColumnListing($table), ); $query = new GetPaginatedPickupExceptionsQuery($dataTableService); $input = new GetPaginatedPickupExceptionsQueryInput( pagination: Pagination::ofPage(new PageNumber(1), new PageSize(10)), ); // WHEN $paginator = $query($input); // THEN expect($paginator->total())->toBe(3) ->and($paginator->items())->toHaveCount(3); }); });