You are here

public function FacetapiTestAdapter::setResultCount in Facet API 7

Same name and namespace in other branches
  1. 6.3 tests/facetapi_test/plugins/facetapi/test_adapter.inc \FacetapiTestAdapter::setResultCount()
  2. 7.2 tests/facetapi_test.plugins.inc \FacetapiTestAdapter::setResultCount()

Sets the result count.

The test searcher does not use the core pager APIs, so we use this method to set a dummy value.

Parameters

int $count: The result count.

Return value

FacetapiAdapter An instance of this class.

File

tests/facetapi_test.plugins.inc, line 55
Test adapter and plugins.

Class

FacetapiTestAdapter
Adapter for our test searcher.

Code

public function setResultCount($count) {
  $this->resultCount = $count;
  return $this;
}