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

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$searchService eZ\Publish\API\Repository\SearchService | PHPUnit_Framework_MockObject_MockObject

Méthodes publiques

Méthode Description
testGetNbResults ( )
testGetSlice ( )

Méthodes protégées

Méthode Description
getAdapter ( eZ\Publish\API\Repository\Values\Content\LocationQuery $query, eZ\Publish\API\Repository\SearchService $searchService ) : LocationSearchHitAdapter Returns the adapter to test.
getExpectedFinalResultFromHits ( $hits ) : mixed Returns expected result from adapter from search hits.
setUp ( )

Method Details

getAdapter() protected méthode

Returns the adapter to test.
protected getAdapter ( eZ\Publish\API\Repository\Values\Content\LocationQuery $query, eZ\Publish\API\Repository\SearchService $searchService ) : LocationSearchHitAdapter
$query eZ\Publish\API\Repository\Values\Content\LocationQuery
$searchService eZ\Publish\API\Repository\SearchService
Résultat eZ\Publish\Core\Pagination\Pagerfanta\LocationSearchHitAdapter

getExpectedFinalResultFromHits() protected méthode

Returns expected result from adapter from search hits.
protected getExpectedFinalResultFromHits ( $hits ) : mixed
$hits
Résultat mixed

setUp() protected méthode

protected setUp ( )

testGetNbResults() public méthode

public testGetNbResults ( )

testGetSlice() public méthode

public testGetSlice ( )

Property Details

$searchService protected_oe property

protected SearchService,eZ\Publish\API\Repository|PHPUnit_Framework_MockObject_MockObject $searchService
Résultat eZ\Publish\API\Repository\SearchService | PHPUnit_Framework_MockObject_MockObject