function SearchKeywordsConditions::setUp

Overrides DrupalWebTestCase::setUp

File

modules/search/search.test, line 1232

Class

SearchKeywordsConditions
Tests keywords and conditions.

Code

function setUp() {
    parent::setUp('search', 'search_extra_type');
    // Create searching user.
    $this->searching_user = $this->drupalCreateUser(array(
        'search content',
        'access content',
        'access comments',
        'skip comment approval',
    ));
    // Login with sufficient privileges.
    $this->drupalLogin($this->searching_user);
    // Test with all search modules enabled.
    variable_set('search_active_modules', array(
        'node' => 'node',
        'user' => 'user',
        'search_extra_type' => 'search_extra_type',
    ));
    menu_rebuild();
}

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