eZ\Publish\Core\Pagination\Tests\ContentSearchHitAdapterTest::getAdapter PHP Method

getAdapter() protected method

Returns the adapter to test.
protected getAdapter ( eZ\Publish\API\Repository\Values\Content\Query $query, eZ\Publish\API\Repository\SearchService $searchService ) : ContentSearchHitAdapter
$query eZ\Publish\API\Repository\Values\Content\Query
$searchService eZ\Publish\API\Repository\SearchService
return eZ\Publish\Core\Pagination\Pagerfanta\ContentSearchHitAdapter
    protected function getAdapter(Query $query, SearchService $searchService)
    {
        return new ContentSearchHitAdapter($query, $searchService);
    }