You are here

public function FacetapiTestCase::loadAdapter in Facet API 6.3

Instantiates the adapter plugin associated with the searcher.

The following tests are executed:

Parameters

string $searcher: The machine readable name of the searcher.

Return value

FacetapiAdapter The adapter object, FALSE if the object can't be loaded.

See also

facetapi_adapter_load().

1 call to FacetapiTestCase::loadAdapter()
FacetapiAdapterTestCase::testValidAdapter in tests/facetapi.test

File

tests/facetapi.test, line 44
Tests for the Facet API module.

Class

FacetapiTestCase
Base class for all Facet API test cases.

Code

public function loadAdapter($searcher) {
  $adapter = facetapi_adapter_load('facetapi_test');
  $value = $adapter instanceof FacetapiAdapter;
  $this
    ->assertTrue($value, t('FacetapiAdapter object loaded via facetapi_adapter_load().'));
  return $adapter;
}