You are here

public function FacetapiTestCase::setUp in Facet API 7.2

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

Overrides DrupalWebTestCase::setUp().

Enables the "block" and "facetapi_test" modules, creates an administrative user with permissions to configure the Faceted Search interface.

Overrides DrupalWebTestCase::setUp

1 call to FacetapiTestCase::setUp()
CurrentSearchTestCase::setUp in contrib/current_search/tests/current_search.test
Overrides FacetapiTestCase::setUp().
1 method overrides FacetapiTestCase::setUp()
CurrentSearchTestCase::setUp in contrib/current_search/tests/current_search.test
Overrides FacetapiTestCase::setUp().

File

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

Class

FacetapiTestCase
Base class for all Facet API test cases.

Code

public function setUp() {
  $modules = func_get_args();
  $modules[] = 'block';
  $modules[] = 'facetapi_test';
  forward_static_call_array('parent::setUp', $modules);
  $this->authenticatedUser = $this
    ->drupalCreateUser();
  $this->adminUser = $this
    ->drupalCreateUser(array(
    'administer blocks',
    'administer search',
    'access administration pages',
  ));
}