function TaxonomyQueryAlterTestCase::setupQueryTagTestHooks

Sets up the hooks in the test module.

1 call to TaxonomyQueryAlterTestCase::setupQueryTagTestHooks()
TaxonomyQueryAlterTestCase::testTaxonomyQueryAlter in modules/taxonomy/taxonomy.test
Tests that appropriate tags are added when querying the database.

File

modules/taxonomy/taxonomy.test, line 2198

Class

TaxonomyQueryAlterTestCase
Tests that appropriate query tags are added.

Code

protected function setupQueryTagTestHooks() {
    taxonomy_terms_static_reset();
    variable_set('taxonomy_test_query_alter', 0);
    variable_set('taxonomy_test_query_term_access_alter', 0);
    variable_set('taxonomy_test_query_taxonomy_term_access_alter', 0);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.