PHP Class eZ\Publish\Core\Pagination\Tests\ContentSearchHitAdapterTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$searchService eZ\Publish\API\Repository\SearchService | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
testGetNbResults ( )
testGetSlice ( )

Protected Methods

Method Description
getAdapter ( eZ\Publish\API\Repository\Values\Content\Query $query, eZ\Publish\API\Repository\SearchService $searchService ) : ContentSearchHitAdapter Returns the adapter to test.
getExpectedFinalResultFromHits ( $hits ) : mixed Returns expected result from adapter from search hits.
setUp ( )

Method Details

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

getExpectedFinalResultFromHits() protected method

Returns expected result from adapter from search hits.
protected getExpectedFinalResultFromHits ( $hits ) : mixed
$hits
return mixed

setUp() protected method

protected setUp ( )

testGetNbResults() public method

public testGetNbResults ( )

testGetSlice() public method

public testGetSlice ( )

Property Details

$searchService protected property

protected SearchService,eZ\Publish\API\Repository|PHPUnit_Framework_MockObject_MockObject $searchService
return eZ\Publish\API\Repository\SearchService | PHPUnit_Framework_MockObject_MockObject