public function FacetapiTestCase::loadAdapter in Facet API 6.3
Instantiates the adapter plugin associated with the searcher.
The following tests are executed:
- DrupalTestCase::assertTrue(): Asserts that FALSE is not returned by facetapi_adapter_load().
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
1 call to FacetapiTestCase::loadAdapter()
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;
}