You are here

public function FacetapiTestCase::facetapiLoadObjects in Facet API 7.2

Same name and namespace in other branches
  1. 7 tests/facetapi.test \FacetapiTestCase::facetapiLoadObjects()

Returns adapter, realm, and facet objects and base admin path.

Useful with the list() function.

Return value

array An array containing:

12 calls to FacetapiTestCase::facetapiLoadObjects()
FacetapiAdminInterfaceTestCase::testDisplayFormRedirect in tests/facetapi.test
Tests display form redirects.
FacetapiAdminInterfaceTestCase::testEnableFacet in tests/facetapi.test
Tests enabling a facet via the UI.
FacetapiAdminInterfaceTestCase::testWidgetSelect in tests/facetapi.test
Tests that an admin can selet a valid widget.
FacetapiApiFunctions::testFacetEnabled in tests/facetapi.test
Tests the facetapi_facet_enabled() function.
FacetapiApiFunctions::testHierarchicalRequirements in tests/facetapi.test
Tests the requirements system for hierarchies.

... See full list

File

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

Class

FacetapiTestCase
Base class for all Facet API test cases.

Code

public function facetapiLoadObjects($facet_name = 'enabled', $realm_name = 'nodisplay', $searcher = 'facetapi_test') {
  return array(
    facetapi_facet_load($facet_name, $searcher),
    facetapi_realm_load($realm_name),
    facetapi_adapter_load($searcher),
    "admin/config/search/facetapi/{$searcher}/{$realm_name}/{$facet_name}",
  );
}